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:
parent
fb5206d9c3
commit
5fc9e4d527
@ -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++));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user