mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
scsi: aha152x: Fix sparse warning and make printing pointer address more portable.
This is to change use of "0x%08x" in favour of "%p" as per ../Documentation/printk-formats.txt, which also takes care about the following warning during compilation time: drivers/scsi/aha152x.c: In function ‘get_command’: drivers/scsi/aha152x.c:2987: warning: cast from pointer to integer of different size Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
90b24cfb42
commit
b631cf1f89
1 changed files with 2 additions and 2 deletions
|
@ -2984,8 +2984,8 @@ static int get_command(char *pos, Scsi_Cmnd * ptr)
|
||||||
char *start = pos;
|
char *start = pos;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
SPRINTF("0x%08x: target=%d; lun=%d; cmnd=( ",
|
SPRINTF("%p: target=%d; lun=%d; cmnd=( ",
|
||||||
(unsigned int) ptr, ptr->device->id, ptr->device->lun);
|
ptr, ptr->device->id, ptr->device->lun);
|
||||||
|
|
||||||
for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++)
|
for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++)
|
||||||
SPRINTF("0x%02x ", ptr->cmnd[i]);
|
SPRINTF("0x%02x ", ptr->cmnd[i]);
|
||||||
|
|
Loading…
Reference in a new issue