aboutsummaryrefslogtreecommitdiff
path: root/include/npu2.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/npu2.h')
-rw-r--r--include/npu2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/npu2.h b/include/npu2.h
index 92b5898..372d1be 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -18,7 +18,7 @@
#define NPU2DEVLOG(l, p, fmt, a...) prlog(l, "NPU%d:%d:%d.%d " fmt, \
(p)->npu->phb_nvlink.opal_id, \
- ((p)->bdfn >> 8) & 0xff, \
+ PCI_BUS_NUM((p)->bdfn), \
((p)->bdfn >> 3) & 0x1f, \
(p)->bdfn & 0x7, ##a)
#define NPU2DEVDBG(p, fmt, a...) NPU2DEVLOG(PR_DEBUG, p, fmt, ##a)