diff options
author | Scott Long <scottl@FreeBSD.org> | 2018-01-26 23:56:07 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2018-01-26 23:56:07 +0000 |
commit | 15747cacb4c087bdd0756ad59fbca848de54365c (patch) | |
tree | c8d59cbb60bac30b781228fae0c2d882c05afbfa /sys/cam/cam_periph.h | |
parent | 5425750f0329d7600d7417303622216ccbf64da4 (diff) | |
download | src-15747cacb4c087bdd0756ad59fbca848de54365c.tar.gz src-15747cacb4c087bdd0756ad59fbca848de54365c.zip |
Move CAM_PERIPH_PRINT() to cam_periph.h
Notes
Notes:
svn path=/head/; revision=328455
Diffstat (limited to 'sys/cam/cam_periph.h')
-rw-r--r-- | sys/cam/cam_periph.h | 3 |
1 files changed, 3 insertions, 0 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 */ |