The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=8f1bc78ef79bc13d88d15cdc5b1bf2f7361ded6d
commit 8f1bc78ef79bc13d88d15cdc5b1bf2f7361ded6d Author: Navdeep Parhar <[email protected]> AuthorDate: 2021-04-22 22:28:43 +0000 Commit: Navdeep Parhar <[email protected]> CommitDate: 2021-04-22 22:28:43 +0000 cxgbe(4): make the logging helpers a little more robust. MFC after: 3 days Sponsored by: Chelsio Communications --- sys/dev/cxgbe/osdep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/cxgbe/osdep.h b/sys/dev/cxgbe/osdep.h index 95c93d83cff8..3f41ccaf3d2c 100644 --- a/sys/dev/cxgbe/osdep.h +++ b/sys/dev/cxgbe/osdep.h @@ -43,13 +43,13 @@ #include <dev/pci/pcireg.h> #define CH_ERR(adap, fmt, ...) log(LOG_ERR, "%s: " fmt, \ - device_get_nameunit(adap->dev), ##__VA_ARGS__) + device_get_nameunit((adap)->dev), ##__VA_ARGS__) #define CH_WARN(adap, fmt, ...) log(LOG_WARNING, "%s: " fmt, \ - device_get_nameunit(adap->dev), ##__VA_ARGS__) + device_get_nameunit((adap)->dev), ##__VA_ARGS__) #define CH_ALERT(adap, fmt, ...) log(LOG_ALERT, "%s: " fmt, \ - device_get_nameunit(adap->dev), ##__VA_ARGS__) + device_get_nameunit((adap)->dev), ##__VA_ARGS__) #define CH_WARN_RATELIMIT(adap, fmt, ...) log(LOG_WARNING, "%s: " fmt, \ - device_get_nameunit(adap->dev), ##__VA_ARGS__) + device_get_nameunit((adap)->dev), ##__VA_ARGS__) #ifndef LINUX_TYPES_DEFINED typedef int8_t s8; _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "[email protected]"
