diff options
Diffstat (limited to 'sys/cam/cam_xpt.c')
| -rw-r--r-- | sys/cam/cam_xpt.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index cae29226d13c..a11b688c4456 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -1046,6 +1046,7 @@ xpt_announce_periph(struct cam_periph *periph, char *announce_string)  	sbuf_set_drain(&sb, sbuf_printf_drain, NULL);  	xpt_announce_periph_sbuf(periph, &sb, announce_string);  	(void)sbuf_finish(&sb); +	(void)sbuf_delete(&sb);  }  void @@ -1122,6 +1123,7 @@ xpt_denounce_periph(struct cam_periph *periph)  	sbuf_set_drain(&sb, sbuf_printf_drain, NULL);  	xpt_denounce_periph_sbuf(periph, &sb);  	(void)sbuf_finish(&sb); +	(void)sbuf_delete(&sb);  }  void @@ -5547,7 +5549,7 @@ xpt_cam_path_debug(struct cam_path *path, const char *fmt, ...)  {  	struct sbuf sbuf;  	char buf[XPT_PRINT_LEN]; /* balance to not eat too much stack */ -	struct sbuf *sb = sbuf_new(&sbuf, buf, sizeof(buf), SBUF_FIXEDLEN); +	struct sbuf *sb = sbuf_new(&sbuf, buf, sizeof(buf), SBUF_FIXEDLEN | SBUF_INCLUDENUL);  	va_list ap;  	sbuf_set_drain(sb, sbuf_printf_drain, NULL); @@ -5566,7 +5568,7 @@ xpt_cam_dev_debug(struct cam_ed *dev, const char *fmt, ...)  {  	struct sbuf sbuf;  	char buf[XPT_PRINT_LEN]; /* balance to not eat too much stack */ -	struct sbuf *sb = sbuf_new(&sbuf, buf, sizeof(buf), SBUF_FIXEDLEN); +	struct sbuf *sb = sbuf_new(&sbuf, buf, sizeof(buf), SBUF_FIXEDLEN | SBUF_INCLUDENUL);  	va_list ap;  	sbuf_set_drain(sb, sbuf_printf_drain, NULL); @@ -5585,7 +5587,7 @@ xpt_cam_debug(const char *fmt, ...)  {  	struct sbuf sbuf;  	char buf[XPT_PRINT_LEN]; /* balance to not eat too much stack */ -	struct sbuf *sb = sbuf_new(&sbuf, buf, sizeof(buf), SBUF_FIXEDLEN); +	struct sbuf *sb = sbuf_new(&sbuf, buf, sizeof(buf), SBUF_FIXEDLEN | SBUF_INCLUDENUL);  	va_list ap;  	sbuf_set_drain(sb, sbuf_printf_drain, NULL); | 
