diff options
author | James Smart <jsmart2021@gmail.com> | 2019-08-15 01:57:06 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-20 04:41:11 +0200 |
commit | 32350664497279f4ddd96164caafc8a1b573ca2a (patch) | |
tree | 7f5d54138e6dd2e8b4ed3855fc3c1e5fa1a77e82 /drivers/scsi/lpfc/lpfc_debugfs.c | |
parent | scsi: lpfc: Add simple unlikely optimizations to reduce NVME latency (diff) | |
download | linux-32350664497279f4ddd96164caafc8a1b573ca2a.tar.xz linux-32350664497279f4ddd96164caafc8a1b573ca2a.zip |
scsi: lpfc: Migrate to %px and %pf in kernel print calls
In order to see real addresses, convert %p with %px for kernel addresses
and replace %p with %pf for functions.
While converting, standardize on "x%px" throughout (not %px or 0x%px).
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_debugfs.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c index 1ee857d9d165..75055ee59e91 100644 --- a/drivers/scsi/lpfc/lpfc_debugfs.c +++ b/drivers/scsi/lpfc/lpfc_debugfs.c @@ -361,7 +361,7 @@ lpfc_debugfs_hbqinfo_data(struct lpfc_hba *phba, char *buf, int size) phys = ((uint64_t)hbq_buf->dbuf.phys & 0xffffffff); if (phys == le32_to_cpu(hbqe->bde.addrLow)) { len += scnprintf(buf+len, size-len, - "Buf%d: %p %06x\n", i, + "Buf%d: x%px %06x\n", i, hbq_buf->dbuf.virt, hbq_buf->tag); found = 1; break; @@ -2210,7 +2210,7 @@ lpfc_debugfs_dumpDif_open(struct inode *inode, struct file *file) goto out; /* Round to page boundary */ - pr_err("9060 BLKGRD: %s: _dump_buf_dif=0x%p file=%pD\n", + pr_err("9060 BLKGRD: %s: _dump_buf_dif=x%px file=%pD\n", __func__, _dump_buf_dif, file); debug->buffer = _dump_buf_dif; if (!debug->buffer) { |