git: e29d72ac3ddd - main - LinuxKPI: pci: add pci_info()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 24 Apr 2025 22:14:39 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=e29d72ac3ddd9b97d945c5c64bc817e501bb113c
commit e29d72ac3ddd9b97d945c5c64bc817e501bb113c
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-04-24 14:31:59 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-04-24 22:13:54 +0000
LinuxKPI: pci: add pci_info()
Add pci_info() needed for a driver update. While here prefix
__VA_ARGS__ with ## for pci_err and pci_info in case we are only
passed a string without format arguments.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D50009
---
sys/compat/linuxkpi/common/include/linux/pci.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index e4e8e5c0abd1..174015ba7a58 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -380,7 +380,9 @@ struct device *lkpi_pci_find_irq_dev(unsigned int irq);
int _lkpi_pci_enable_msi_range(struct pci_dev *pdev, int minvec, int maxvec);
#define pci_err(pdev, fmt, ...) \
- dev_err(&(pdev)->dev, fmt, __VA_ARGS__)
+ dev_err(&(pdev)->dev, fmt, ##__VA_ARGS__)
+#define pci_info(pdev, fmt, ...) \
+ dev_info(&(pdev)->dev, fmt, ##__VA_ARGS__)
static inline bool
dev_is_pci(struct device *dev)