svn commit: r356904 - head/sys/powerpc/amigaone
Justin Hibbits
jhibbits at FreeBSD.org
Mon Jan 20 04:01:35 UTC 2020
Author: jhibbits
Date: Mon Jan 20 04:01:35 2020
New Revision: 356904
URL: https://svnweb.freebsd.org/changeset/base/356904
Log:
powerpc/amiga: Hide CPLD date and time printing behind bootverbose
There's no need to see the CPLD build date and time every boot.
Modified:
head/sys/powerpc/amigaone/cpld_x5000.c
Modified: head/sys/powerpc/amigaone/cpld_x5000.c
==============================================================================
--- head/sys/powerpc/amigaone/cpld_x5000.c Mon Jan 20 01:38:03 2020 (r356903)
+++ head/sys/powerpc/amigaone/cpld_x5000.c Mon Jan 20 04:01:35 2020 (r356904)
@@ -164,15 +164,17 @@ cpld_attach(device_t dev)
return (ENXIO);
}
mtx_init(&sc->sc_mutex, "cpld", NULL, MTX_DEF);
- date = (cpld_read(sc, CPLD_REG_DATE_UW) << 16) |
- cpld_read(sc, CPLD_REG_DATE_LW);
- time = (cpld_read(sc, CPLD_REG_TIME_UW) << 16) |
- cpld_read(sc, CPLD_REG_TIME_LW);
+ if (bootverbose) {
+ date = (cpld_read(sc, CPLD_REG_DATE_UW) << 16) |
+ cpld_read(sc, CPLD_REG_DATE_LW);
+ time = (cpld_read(sc, CPLD_REG_TIME_UW) << 16) |
+ cpld_read(sc, CPLD_REG_TIME_LW);
- device_printf(dev, "Build date: %04x-%02x-%02x\n", (date >> 16) & 0xffff,
- (date >> 8) & 0xff, date & 0xff);
- device_printf(dev, "Build time: %02x:%02x:%02x\n", (time >> 16) & 0xff,
- (time >> 8) & 0xff, time & 0xff);
+ device_printf(dev, "Build date: %04x-%02x-%02x\n",
+ (date >> 16) & 0xffff, (date >> 8) & 0xff, date & 0xff);
+ device_printf(dev, "Build time: %02x:%02x:%02x\n",
+ (time >> 16) & 0xff, (time >> 8) & 0xff, time & 0xff);
+ }
tmp = cpld_read(sc, CPLD_REG_HWREV);
device_printf(dev, "Hardware revision: %d\n", tmp);
More information about the svn-src-all
mailing list