Commit 14660f4fc84c4cbb3e90de50793f7eef119c2a02

Authored by James Smart
Committed by James Bottomley
1 parent f454a9ac82

[SCSI] lpfc 8.3.42: Fixed logging format of setting driver sysfs attributes hard to interpret

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

drivers/scsi/lpfc/lpfc_attr.c
... ... @@ -1865,8 +1865,10 @@
1865 1865 { \
1866 1866 if (val >= minval && val <= maxval) {\
1867 1867 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \
1868   - "3053 lpfc_" #attr " changed from %d to %d\n", \
1869   - vport->cfg_##attr, val); \
  1868 + "3053 lpfc_" #attr \
  1869 + " changed from %d (x%x) to %d (x%x)\n", \
  1870 + vport->cfg_##attr, vport->cfg_##attr, \
  1871 + val, val); \
1870 1872 vport->cfg_##attr = val;\
1871 1873 return 0;\
1872 1874 }\