Move CAM_PERIPH_PRINT() to cam_periph.h

This commit is contained in:
Scott Long 2018-01-26 23:56:07 +00:00
parent 5425750f03
commit 15747cacb4
2 changed files with 3 additions and 3 deletions

View File

@ -260,5 +260,8 @@ cam_periph_acquire_next(struct cam_periph *pperiph)
(periph) != NULL; \ (periph) != NULL; \
(periph) = cam_periph_acquire_next(periph)) (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 /* _KERNEL */
#endif /* _CAM_CAM_PERIPH_H */ #endif /* _CAM_CAM_PERIPH_H */

View File

@ -1497,9 +1497,6 @@ static MALLOC_DEFINE(M_SCSIDA, "scsi_da", "scsi_da buffers");
#endif #endif
#if DA_TRACK_REFS > 1 #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[] = { static const char *da_ref_text[] = {
"bogus", "bogus",
"open", "open",