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;
_______________________________________________
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