Commit da4704d9 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: qla2xxx: Use %p for printing pointers

Using %p instead of %lx to print a pointer allows to remove a cast.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Himanshu Madhani <himanshu.madhani@cavium.com>
Acked-by: default avatarHimanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 128bddac
...@@ -2688,8 +2688,8 @@ qla2x00_chip_diag(scsi_qla_host_t *vha) ...@@ -2688,8 +2688,8 @@ qla2x00_chip_diag(scsi_qla_host_t *vha)
/* Assume a failed state */ /* Assume a failed state */
rval = QLA_FUNCTION_FAILED; rval = QLA_FUNCTION_FAILED;
ql_dbg(ql_dbg_init, vha, 0x007b, ql_dbg(ql_dbg_init, vha, 0x007b, "Testing device at %p.\n",
"Testing device at %lx.\n", (u_long)&reg->flash_address); &reg->flash_address);
spin_lock_irqsave(&ha->hardware_lock, flags); spin_lock_irqsave(&ha->hardware_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment