Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2020 18:43:47 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363487 - head/sys/cam/mmc
Message-ID:  <202007241843.06OIhlqn025356@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Fri Jul 24 18:43:46 2020
New Revision: 363487
URL: https://svnweb.freebsd.org/changeset/base/363487

Log:
  mmccam: Make non bootverbose more readable
  
  Remove some debug printfs.
  Convert some to CAM_DEBUG
  Only print some when bootverbose is set.

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

Modified: head/sys/cam/mmc/mmc_xpt.c
==============================================================================
--- head/sys/cam/mmc/mmc_xpt.c	Fri Jul 24 18:19:25 2020	(r363486)
+++ head/sys/cam/mmc/mmc_xpt.c	Fri Jul 24 18:43:46 2020	(r363487)
@@ -179,7 +179,6 @@ mmc_alloc_device(struct cam_eb *bus, struct cam_et *ta
 {
 	struct cam_ed *device;
 
-	printf("mmc_alloc_device()\n");
 	device = xpt_alloc_device(bus, target, lun_id);
 	if (device == NULL)
 		return (NULL);
@@ -282,7 +281,8 @@ mmc_scan_lun(struct cam_periph *periph, struct cam_pat
 			xpt_done(request_ccb);
 		}
 	} else {
-		xpt_print(path, " Set up the mmcprobe device...\n");
+		if (bootverbose)
+			xpt_print(path, " Set up the mmcprobe device...\n");
 
                 status = cam_periph_alloc(mmcprobe_register, NULL,
 					  mmcprobe_cleanup,
@@ -829,7 +829,6 @@ mmcprobe_done(struct cam_periph *periph, union ccb *do
 		/* FALLTHROUGH */
 	case PROBE_IDENTIFY:
 	{
-		printf("Starting completion of PROBE_RESET\n");
 		CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_PROBE, ("done with PROBE_RESET\n"));
 		mmcio = &done_ccb->mmcio;
 		err = mmcio->cmd.error;
@@ -1149,7 +1148,7 @@ mmcprobe_done(struct cam_periph *periph, union ccb *do
                 xpt_schedule(periph, priority);
 	/* Drop freeze taken due to CAM_DEV_QFREEZE flag set. */
 	int frozen = cam_release_devq(path, 0, 0, 0, FALSE);
-        printf("mmc_probedone: remaining freezecnt %d\n", frozen);
+        CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_PROBE, ("mmc_probedone: remaining freezecnt %d\n", frozen));
 
 	if (softc->action == PROBE_DONE) {
                 /* Notify the system that the device is found! */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007241843.06OIhlqn025356>