Skip to contentSkip to conversation

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

PATCH In review James Smart 1 participant 1 message Sep 6, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 9/18 lpfc 8.3.42: Fixed logging format of setting driver sysfs attributes hard to interpret

Fixed logging format of setting driver sysfs attributes hard to interpret

---

 lpfc_attr.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/scsi/lpfc/lpfc_attr.c +4 -2
diff -upNr a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
@@ -1865,8 +1865,10 @@ lpfc_##attr##_set(struct lpfc_vport *vpo
 { \
 	if (val >= minval && val <= maxval) {\
 		lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \
-			"3053 lpfc_" #attr " changed from %d to %d\n", \
-			vport->cfg_##attr, val); \
+			"3053 lpfc_" #attr \
+			" changed from %d (x%x) to %d (x%x)\n", \
+			vport->cfg_##attr, vport->cfg_##attr, \
+			val, val); \
 		vport->cfg_##attr = val;\
 		return 0;\
 	}\