From 9ad9e387e9806be0093be97b2e0952a7fab968e9 Mon Sep 17 00:00:00 2001 From: grehan Date: Fri, 18 Oct 2013 22:05:17 +0000 Subject: 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) --- usr.sbin/bhyve/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bhyve/rtc.c') 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 ? */ -- cgit v1.1