Author: manu
Date: Mon Nov 30 14:49:13 2020
New Revision: 368186
URL: https://svnweb.freebsd.org/changeset/base/368186

Log:
  mmccam: Convert some printf to CAM_DEBUG
  
  This not not useful if you are not debuging mmccam

Modified:
  head/sys/cam/mmc/mmc_xpt.c

Modified: head/sys/cam/mmc/mmc_xpt.c
==============================================================================
--- head/sys/cam/mmc/mmc_xpt.c  Mon Nov 30 14:48:50 2020        (r368185)
+++ head/sys/cam/mmc/mmc_xpt.c  Mon Nov 30 14:49:13 2020        (r368186)
@@ -263,8 +263,8 @@ mmc_scan_lun(struct cam_periph *periph, struct cam_pat
                        xpt_done(request_ccb);
                }
        } else {
-               if (bootverbose)
-                       xpt_print(path, " Set up the mmcprobe device...\n");
+               CAM_DEBUG(path, CAM_DEBUG_INFO,
+                   (" Set up the mmcprobe device...\n"));
 
                 status = cam_periph_alloc(mmcprobe_register, NULL,
                                          mmcprobe_cleanup,
@@ -382,7 +382,8 @@ mmc_announce_periph(struct cam_periph *periph)
        if ((cts.ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)
                return;
        xpt_path_inq(&cpi, periph->path);
-       printf("XPT info: CLK %04X, ...\n", cts.proto_specific.mmc.ios.clock);
+       CAM_DEBUG(path, CAM_DEBUG_INFO,
+           ("XPT info: CLK %04d, ...\n", cts.proto_specific.mmc.ios.clock));
 }
 
 void
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to