aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2018-01-26 23:56:07 +0000
committerScott Long <scottl@FreeBSD.org>2018-01-26 23:56:07 +0000
commit15747cacb4c087bdd0756ad59fbca848de54365c (patch)
treec8d59cbb60bac30b781228fae0c2d882c05afbfa
parent5425750f0329d7600d7417303622216ccbf64da4 (diff)
downloadsrc-15747cacb4c087bdd0756ad59fbca848de54365c.tar.gz
src-15747cacb4c087bdd0756ad59fbca848de54365c.zip
Move CAM_PERIPH_PRINT() to cam_periph.h
Notes
Notes: svn path=/head/; revision=328455
-rw-r--r--sys/cam/cam_periph.h3
-rw-r--r--sys/cam/scsi/scsi_da.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/cam_periph.h b/sys/cam/cam_periph.h
index c48ed865cde7..ee9a5fc0f07f 100644
--- a/sys/cam/cam_periph.h
+++ b/sys/cam/cam_periph.h
@@ -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 */
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 633aaba72d9b..dc37bf182e5f 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1497,9 +1497,6 @@ static MALLOC_DEFINE(M_SCSIDA, "scsi_da", "scsi_da buffers");
#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",