summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_xpt.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-12-05 07:45:28 +0000
committermjacob <mjacob@FreeBSD.org>2006-12-05 07:45:28 +0000
commit18ed122eede36bb9f67ea05ce9fdf22674da2365 (patch)
tree2dfb6b8881a0b9d42d43950512ea20b0903e8be8 /sys/cam/cam_xpt.h
parent3f733764261ff79c423255375230362d5766defb (diff)
downloadFreeBSD-src-18ed122eede36bb9f67ea05ce9fdf22674da2365.zip
FreeBSD-src-18ed122eede36bb9f67ea05ce9fdf22674da2365.tar.gz
Add an xpt_print function to reduce most of the xpt_print_path/printf
pairs. Convert the core code to use it. Reviewed by: scsi (various folks weighing in with good advice) MFC after: 2 weeks
Diffstat (limited to 'sys/cam/cam_xpt.h')
-rw-r--r--sys/cam/cam_xpt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.h b/sys/cam/cam_xpt.h
index 1b982c7..a84feae 100644
--- a/sys/cam/cam_xpt.h
+++ b/sys/cam/cam_xpt.h
@@ -62,6 +62,7 @@ void xpt_free_path(struct cam_path *path);
int xpt_path_comp(struct cam_path *path1,
struct cam_path *path2);
void xpt_print_path(struct cam_path *path);
+void xpt_print(struct cam_path *path, const char *fmt, ...);
int xpt_path_string(struct cam_path *path, char *str,
size_t str_len);
path_id_t xpt_path_path_id(struct cam_path *path);
OpenPOWER on IntegriCloud