diff options
author | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2012-05-02 06:34:01 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-07-20 04:19:25 -0400 |
commit | b631cf1f899f9d2e449884dbccc34940637c639f (patch) | |
tree | e3b9d3e7e7cd83d5456bcdd77d8b80553e44fa6d /drivers/scsi/aha152x.c | |
parent | 90b24cfb42fc5c0366a0555fd5236e9f84f86d2c (diff) |
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>
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r-- | drivers/scsi/aha152x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index 19a36945e6fd..dd4547bf6881 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c | |||
@@ -2984,8 +2984,8 @@ static int get_command(char *pos, Scsi_Cmnd * ptr) | |||
2984 | char *start = pos; | 2984 | char *start = pos; |
2985 | int i; | 2985 | int i; |
2986 | 2986 | ||
2987 | SPRINTF("0x%08x: target=%d; lun=%d; cmnd=( ", | 2987 | SPRINTF("%p: target=%d; lun=%d; cmnd=( ", |
2988 | (unsigned int) ptr, ptr->device->id, ptr->device->lun); | 2988 | ptr, ptr->device->id, ptr->device->lun); |
2989 | 2989 | ||
2990 | for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++) | 2990 | for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++) |
2991 | SPRINTF("0x%02x ", ptr->cmnd[i]); | 2991 | SPRINTF("0x%02x ", ptr->cmnd[i]); |