staging: msm: formatting of pointers in printk()
Subsystems (2)
PATCH 9/11 staging: msm: formatting of pointers in printk()
Use %p instead of %08x in printk().
Signed-off-by Kulikov Vasiliy <[email protected]>
--- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/comedi/drivers/quatech_daqp_cs.c +1 -1
@@ -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++)); }
Signature · 1 line
1.7.0.4
Quoted 11 lines · Kulikov Vasiliy
Use %p instead of %08x in
printk().Signed-off-by Kulikov Vasiliy <[email protected]>--- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/staging/comedi/drivers/quatech_daqp_cs.c +0
-0
drivers/staging/comedi/drivers/quatech_daqp_cs.c static void hex_dump(char *str, void *ptr, int len) · line 214
Quoted 8 lines
drivers/staging/comedi/drivers/quatech_daqp_cs.c +1
-1@@ -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++)); }
I was originally going to suggest a conversion
to print_hex_dump, but this function isn't used
and it and daqp_dump might as well be removed.
Quoted 5 lines · Kulikov Vasiliy
Use %p instead of %08x in
printk().Signed-off-by Kulikov Vasiliy <[email protected]>--- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +-
Why does your Subject: say "msm"?
greg k-h
Quoted 5 lines · On Wednesday 14 July 2010 11:05:17 Kulikov Vasiliy wrote:
Use %p instead of %08x in
printk().Signed-off-by Kulikov Vasiliy <[email protected]>--- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +-
Did you mean to have an 'msm:' in the subject? This driver isn't part of the msm subsystem?
Thanks,
David Brown
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.