Author: scottl
Date: Fri Jan 27 21:55:47 2017
New Revision: 312900
URL: https://svnweb.freebsd.org/changeset/base/312900

Log:
  Squash a couple of uses of xpt_print_path()
  
  Sponsored by: Netflix

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c      Fri Jan 27 21:31:32 2017        (r312899)
+++ head/sys/cam/cam_xpt.c      Fri Jan 27 21:55:47 2017        (r312900)
@@ -3062,8 +3062,8 @@ call_sim:
        case XPT_TERM_IO:
        case XPT_ENG_INQ:
                /* XXX Implement */
-               xpt_print_path(start_ccb->ccb_h.path);
-               printf("%s: CCB type %#x %s not supported\n", __func__,
+               xpt_print(start_ccb->ccb_h.path,
+                   "%s: CCB type %#x %s not supported\n", __func__,
                    start_ccb->ccb_h.func_code,
                    xpt_action_name(start_ccb->ccb_h.func_code));
                start_ccb->ccb_h.status = CAM_PROVIDE_FAIL;
@@ -3944,8 +3944,8 @@ xpt_bus_register(struct cam_sim *sim, de
                        }
                }
                if (new_bus->xport == NULL) {
-                       xpt_print_path(path);
-                       printf("No transport found for %d\n", cpi.transport);
+                       xpt_print(path,
+                           "No transport found for %d\n", cpi.transport);
                        xpt_release_bus(new_bus);
                        free(path, M_CAMXPT);
                        return (CAM_RESRC_UNAVAIL);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to