staging: comedi: formatting of pointers in printk()
Kulikov Vasiliy [Wed, 14 Jul 2010 18:05:17 +0000 (22:05 +0400)]
Use %p instead of %08x in printk().

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

drivers/staging/comedi/drivers/quatech_daqp_cs.c

index 8d16380..8b49cb1 100644 (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++));
        }