summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorGrzegorz Heldt <grzegorz.heldt@intel.com>2016-07-25 22:39:33 +0200
committerDoug Ledford <dledford@redhat.com>2016-08-02 22:00:58 +0200
commit23002d5b08ccbbf0902bbc3430293629a1fa12c6 (patch)
treee2a2ac5cda7dcbf3f9688518536c828aaf741f98 /drivers/infiniband/hw
parentIB/hfi1: Add sysfs entry to override SDMA interrupt affinity (diff)
downloadlinux-23002d5b08ccbbf0902bbc3430293629a1fa12c6.tar.xz
linux-23002d5b08ccbbf0902bbc3430293629a1fa12c6.zip
IB/hfi1: Fix trace message units
Trace shows incorrect amount of allocated memory. Fix trace to display memory in KB. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Grzegorz Heldt <grzegorz.heldt@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/hfi1/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hfi1/init.c b/drivers/infiniband/hw/hfi1/init.c
index 44ec3a838b1b..a358d23ecd54 100644
--- a/drivers/infiniband/hw/hfi1/init.c
+++ b/drivers/infiniband/hw/hfi1/init.c
@@ -1777,8 +1777,8 @@ int hfi1_setup_eagerbufs(struct hfi1_ctxtdata *rcd)
hfi1_cdbg(PROC,
"ctxt%u: Alloced %u rcv tid entries @ %uKB, total %zuKB\n",
- rcd->ctxt, rcd->egrbufs.alloced, rcd->egrbufs.rcvtid_size,
- rcd->egrbufs.size);
+ rcd->ctxt, rcd->egrbufs.alloced,
+ rcd->egrbufs.rcvtid_size / 1024, rcd->egrbufs.size / 1024);
/*
* Set the contexts rcv array head update threshold to the closest