Skip to content

Commit

Permalink
staging: comedi: formatting of pointers in printk()
Browse files Browse the repository at this point in the history
Use %p instead of %08x in printk().

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent fb5206d commit 5fc9e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/quatech_daqp_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++));
}
Expand Down

0 comments on commit 5fc9e4d

Please sign in to comment.