]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Refactor xpt_print_path, xpt_print, and xpt_path_string. Implement
authorScott Long <scottl@FreeBSD.org>
Thu, 26 Jan 2017 20:08:58 +0000 (20:08 +0000)
committerScott Long <scottl@FreeBSD.org>
Thu, 26 Jan 2017 20:08:58 +0000 (20:08 +0000)
commitab3e89f1ab134186362abe9848a855d5077fbd40
tree5cafcd5daf7d9174cb5b6d3710c72ede0eef68f0
parent6cf8931a2f9fa26b2d9bdba6f1915f655e6bf25f
Refactor xpt_print_path, xpt_print, and xpt_path_string.  Implement
all of them in terms of an sbuf-based back-end, xpt_path_sbuf.  This
unifies the implementation, but more importantly it stops the output
fropm being split between 4 or more invocations of printf.  The
multiple invocations cause interleaving of the messages on the
console during boot, making the output of disk discovery often
unintelligible.  This change helps a lot, but more work is needed.

Reviewed by: ken, mav
Sponsored by: Netflix
sys/cam/cam_xpt.c
sys/cam/cam_xpt.h