diff options
author | grehan <grehan@FreeBSD.org> | 2013-10-18 22:05:17 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2013-10-18 22:05:17 +0000 |
commit | 9ad9e387e9806be0093be97b2e0952a7fab968e9 (patch) | |
tree | b4a49ea2f380dac64bdf8e0bcf704afa5d09ca0c /usr.sbin/bhyve/rtc.c | |
parent | 4bbe413766853fb56498b922eeb0146111eb7ca3 (diff) | |
download | FreeBSD-src-9ad9e387e9806be0093be97b2e0952a7fab968e9.zip FreeBSD-src-9ad9e387e9806be0093be97b2e0952a7fab968e9.tar.gz |
MFC r256709:
Eliminate unconditional debug printfs.
Linux writes to these nominally read-only registers,
so avoid having bhyve write warning messages to stdout
when the reg writes can be safely ignored. Change the
WPRINTF to DPRINTF which is conditional.
Approved by: re (delphij)
Diffstat (limited to 'usr.sbin/bhyve/rtc.c')
-rw-r--r-- | usr.sbin/bhyve/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/rtc.c b/usr.sbin/bhyve/rtc.c index c1a84d74..f3ce2bc 100644 --- a/usr.sbin/bhyve/rtc.c +++ b/usr.sbin/bhyve/rtc.c @@ -331,7 +331,7 @@ rtc_init(struct vmctx *ctx) memset(rtc_nvram, 0, sizeof(rtc_nvram)); - rtc_nvram[nvoff(RTC_CENTURY)] = rtcout(tm.tm_year / 100); + rtc_nvram[nvoff(RTC_CENTURY)] = bin2bcd((tm.tm_year + 1900) / 100); /* XXX init diag/reset code/equipment/checksum ? */ |