staging: comedi: formatting of pointers in printk()

Use %p instead of %08x in printk().

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Kulikov Vasiliy 2010-07-14 22:05:17 +04:00 committed by Greg Kroah-Hartman
parent fb5206d9c3
commit 5fc9e4d527

View File

@ -208,7 +208,7 @@ static void hex_dump(char *str, void *ptr, int len)
for (i = 0; i < len; i++) {
if (i % 16 == 0)
printk("\n0x%08x:", (unsigned int)cptr);
printk("\n%p:", cptr);
printk(" %02x", *(cptr++));
}