Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Nov 2015 16:43:26 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290272 - head/sys/arm64/arm64
Message-ID:  <201511021643.tA2GhQHo081917@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Mon Nov  2 16:43:26 2015
New Revision: 290272
URL: https://svnweb.freebsd.org/changeset/base/290272

Log:
  Make the arm64_cpu driver quiet as it adds no new information.
  Only report the register used to start each cpu in bootverbose.
  
  Sponsored by:	ABT Systems Ltd

Modified:
  head/sys/arm64/arm64/mp_machdep.c

Modified: head/sys/arm64/arm64/mp_machdep.c
==============================================================================
--- head/sys/arm64/arm64/mp_machdep.c	Mon Nov  2 13:14:27 2015	(r290271)
+++ head/sys/arm64/arm64/mp_machdep.c	Mon Nov  2 16:43:26 2015	(r290272)
@@ -137,6 +137,7 @@ arm64_cpu_probe(device_t dev)
 	if (cpuid >= MAXCPU || cpuid > mp_maxid)
 		return (EINVAL);
 
+	device_quiet(dev);
 	return (0);
 }
 
@@ -158,10 +159,12 @@ arm64_cpu_attach(device_t dev)
 	if (reg == NULL)
 		return (EINVAL);
 
-	device_printf(dev, "Found register:");
-	for (i = 0; i < reg_size; i++)
-		printf(" %x", reg[i]);
-	printf("\n");
+	if (bootverbose) {
+		device_printf(dev, "register <");
+		for (i = 0; i < reg_size; i++)
+			printf("%s%x", (i == 0) ? "" : " ", reg[i]);
+		printf(">\n");
+	}
 
 	/* Set the device to start it later */
 	cpu_list[cpuid] = dev;



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