Commit 0a62c392 authored by Dotan Barak's avatar Dotan Barak Committed by Oded Gabbay
Browse files

habanalabs: print all CB handles as hex numbers



Make all the CB handles printed in the same way and not some as decimal and
some as hex numbers.

Signed-off-by: default avatarDotan Barak <dbarak@habana.ai>
Reviewed-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 010a118c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ int hl_cb_mmap(struct hl_fpriv *hpriv, struct vm_area_struct *vma)
	cb = hl_cb_get(hdev, &hpriv->cb_mgr, handle);
	if (!cb) {
		dev_err(hdev->dev,
			"CB mmap failed, no match to handle %d\n", handle);
			"CB mmap failed, no match to handle 0x%x\n", handle);
		return -EINVAL;
	}

@@ -357,7 +357,7 @@ struct hl_cb *hl_cb_get(struct hl_device *hdev, struct hl_cb_mgr *mgr,
	if (!cb) {
		spin_unlock(&mgr->cb_lock);
		dev_warn(hdev->dev,
			"CB get failed, no match to handle %d\n", handle);
			"CB get failed, no match to handle 0x%x\n", handle);
		return NULL;
	}