IB/hfi1: Correct log message strings
authorJakub Pawlak <jakub.pawlak@intel.com>
Thu, 12 May 2016 17:23:35 +0000 (10:23 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:18 +0000 (19:39 -0400)
Remove "IB" keyword from log messages.
Correct comment for thermal sensor init function.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c
drivers/staging/rdma/hfi1/driver.c
drivers/staging/rdma/hfi1/hfi.h
drivers/staging/rdma/hfi1/sysfs.c

index ec0953ec7ee34e0b12cd2e6008002cadf8082ec1..d8cc329901d060f96887d97fb9e7ef79a10a5530 100644 (file)
@@ -14588,7 +14588,7 @@ u64 create_pbc(struct hfi1_pportdata *ppd, u64 flags, int srate_mbs, u32 vl,
                   (reason), (ret))
 
 /*
- * Initialize the Avago Thermal sensor.
+ * Initialize the thermal sensor.
  *
  * After initialization, enable polling of thermal sensor through
  * SBus interface. In order for this to work, the SBus Master
index 700c6fa3a6330cc10e2e640d1e1b89ebd9678c41..c75b0ae688f87713a922be6df18ab19efb67e56b 100644 (file)
@@ -1161,7 +1161,7 @@ int hfi1_set_lid(struct hfi1_pportdata *ppd, u32 lid, u8 lmc)
        ppd->lmc = lmc;
        hfi1_set_ib_cfg(ppd, HFI1_IB_CFG_LIDLMC, 0);
 
-       dd_dev_info(dd, "IB%u:%u got a lid: 0x%x\n", dd->unit, ppd->port, lid);
+       dd_dev_info(dd, "port %u: got a lid: 0x%x\n", ppd->port, lid);
 
        return 0;
 }
index 4aac75f7ce598a438074828050620a358f8ebe88..337bd2dc2dbfdaa6a044620ed6aa4d4a51520bbb 100644 (file)
@@ -1883,9 +1883,8 @@ static inline u64 hfi1_pkt_base_sdma_integrity(struct hfi1_devdata *dd)
                get_unit_name((dd)->unit), ##__VA_ARGS__)
 
 #define hfi1_dev_porterr(dd, port, fmt, ...) \
-       dev_err(&(dd)->pcidev->dev, "%s: IB%u:%u " fmt, \
-                       get_unit_name((dd)->unit), (dd)->unit, (port), \
-                       ##__VA_ARGS__)
+       dev_err(&(dd)->pcidev->dev, "%s: port %u: " fmt, \
+                       get_unit_name((dd)->unit), (port), ##__VA_ARGS__)
 
 /*
  * this is used for formatting hw error messages...
index 8cd6df8634ad2c056ba56542a2ec99180e05717b..91fc2aed6aed93dbfa3b5d2b8a197ce4537a67a9 100644 (file)
@@ -721,8 +721,8 @@ int hfi1_create_port_files(struct ib_device *ibdev, u8 port_num,
        }
 
        dd_dev_info(dd,
-                   "IB%u: Congestion Control Agent enabled for port %d\n",
-                   dd->unit, port_num);
+                   "Congestion Control Agent enabled for port %d\n",
+                   port_num);
 
        return 0;