Skip to content

Commit

Permalink
devio: add 32bit pointer support
Browse files Browse the repository at this point in the history
This means we need a new % code for printk and to stop misusing %x for pointers. Add %p
  • Loading branch information
Alan Cox committed Aug 30, 2016
1 parent 550f83e commit f5250dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Kernel/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,9 @@ void kprintf(const char *fmt, ...)
fmt++;
continue;
}

#ifdef CONFIG_32BIT
case 'p':
#endif
case 'l': /* assume an x is following */
{
long l = va_arg(ap, unsigned long);
Expand All @@ -577,6 +579,9 @@ void kprintf(const char *fmt, ...)
continue;
}

#ifndef CONFIG_32BIT
case 'p':
#endif
case 'x':
case 'd':
case 'u':
Expand Down

0 comments on commit f5250dd

Please sign in to comment.