Skip to content

Commit

Permalink
devio: Fix broken pointer printing on 16bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Cox committed Nov 13, 2016
1 parent fb102b7 commit fb95859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ void kprintf(const char *fmt, ...)
{
unsigned int v = va_arg(ap, int);

if (*fmt == 'x')
if (*fmt == 'x' || *fmt == 'p')
kputhex(v);
else if (*fmt == 'd')
kputnum(v);
Expand Down

0 comments on commit fb95859

Please sign in to comment.