svn commit: r328455 - in head/sys/cam: . scsi
Scott Long
scottl at FreeBSD.org
Fri Jan 26 23:56:08 UTC 2018
Author: scottl
Date: Fri Jan 26 23:56:07 2018
New Revision: 328455
URL: https://svnweb.freebsd.org/changeset/base/328455
Log:
Move CAM_PERIPH_PRINT() to cam_periph.h
Modified:
head/sys/cam/cam_periph.h
head/sys/cam/scsi/scsi_da.c
Modified: head/sys/cam/cam_periph.h
==============================================================================
--- head/sys/cam/cam_periph.h Fri Jan 26 23:49:31 2018 (r328454)
+++ head/sys/cam/cam_periph.h Fri Jan 26 23:56:07 2018 (r328455)
@@ -260,5 +260,8 @@ cam_periph_acquire_next(struct cam_periph *pperiph)
(periph) != NULL; \
(periph) = cam_periph_acquire_next(periph))
+#define CAM_PERIPH_PRINT(p, msg, args...) \
+ printf("%s%d:" msg, (periph)->periph_name, (periph)->unit_number, ##args)
+
#endif /* _KERNEL */
#endif /* _CAM_CAM_PERIPH_H */
Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c Fri Jan 26 23:49:31 2018 (r328454)
+++ head/sys/cam/scsi/scsi_da.c Fri Jan 26 23:56:07 2018 (r328455)
@@ -1497,9 +1497,6 @@ static MALLOC_DEFINE(M_SCSIDA, "scsi_da", "scsi_da buf
#endif
#if DA_TRACK_REFS > 1
-#define CAM_PERIPH_PRINT(p, msg, args...) \
- printf("%s%d:" msg, (periph)->periph_name, (periph)->unit_number, ##args)
-
static const char *da_ref_text[] = {
"bogus",
"open",
More information about the svn-src-all
mailing list