From: Krzysztof Wilczynski Date: Wed, 2 May 2012 10:34:01 +0000 (+0100) Subject: scsi: aha152x: Fix sparse warning and make printing pointer address more portable. X-Git-Tag: v3.2.36~149 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ddd6e088519fa4bdd6388ab05109cffdc8a35107;p=karo-tx-linux.git scsi: aha152x: Fix sparse warning and make printing pointer address more portable. commit b631cf1f899f9d2e449884dbccc34940637c639f upstream. 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 Signed-off-by: Jiri Kosina Signed-off-by: Ben Hutchings --- diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index f17c92cf808b..0fd5ea722cff 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c @@ -2985,8 +2985,8 @@ static int get_command(char *pos, Scsi_Cmnd * ptr) char *start = pos; int i; - SPRINTF("0x%08x: target=%d; lun=%d; cmnd=( ", - (unsigned int) ptr, ptr->device->id, ptr->device->lun); + SPRINTF("%p: target=%d; lun=%d; cmnd=( ", + ptr, ptr->device->id, ptr->device->lun); for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++) SPRINTF("0x%02x ", ptr->cmnd[i]);