Skip to content

Commit 23002d5

Browse files
Grzegorz Heldtdledford
authored andcommitted
IB/hfi1: Fix trace message units
Trace shows incorrect amount of allocated memory. Fix trace to display memory in KB. Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Grzegorz Heldt <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent b14db1f commit 23002d5

File tree

1 file changed

+2
-2
lines changed
  • drivers/infiniband/hw/hfi1

1 file changed

+2
-2
lines changed

drivers/infiniband/hw/hfi1/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,8 +1777,8 @@ int hfi1_setup_eagerbufs(struct hfi1_ctxtdata *rcd)
17771777

17781778
hfi1_cdbg(PROC,
17791779
"ctxt%u: Alloced %u rcv tid entries @ %uKB, total %zuKB\n",
1780-
rcd->ctxt, rcd->egrbufs.alloced, rcd->egrbufs.rcvtid_size,
1781-
rcd->egrbufs.size);
1780+
rcd->ctxt, rcd->egrbufs.alloced,
1781+
rcd->egrbufs.rcvtid_size / 1024, rcd->egrbufs.size / 1024);
17821782

17831783
/*
17841784
* Set the contexts rcv array head update threshold to the closest

0 commit comments

Comments
 (0)