Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23002d5b authored by Grzegorz Heldt's avatar Grzegorz Heldt Committed by Doug Ledford
Browse files

IB/hfi1: Fix trace message units



Trace shows incorrect amount of allocated memory.
Fix trace to display memory in KB.

Reviewed-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarGrzegorz Heldt <grzegorz.heldt@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent b14db1f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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