[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100510171707.28da6795@feng-i7>
Date: Mon, 10 May 2010 17:17:07 +0800
From: Feng Tang <feng.tang@...el.com>
To: "H. Peter Anvin" <hpa@...or.com>
CC: Joe Perches <joe@...ches.com>, Alan Cox <alan@...rguk.ukuu.org.uk>,
Alessandro Zummo <a.zummo@...ertech.it>,
Jacob Pan <jacob.jun.pan@...ux.intel.com>,
Thomas Gleixner <tglx@...utronix.de>,
"Ingo Molnar" <mingo@...e.hu>, "Du, Alek" <alek.du@...el.com>,
Arjan van de Ven <arjan@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as a wall
clock device
On Sat, 8 May 2010 03:56:09 +0800
"H. Peter Anvin" <hpa@...or.com> wrote:
> >
>
> Probably the right thing to do is to (a) move all this printing to
> common code; (b) change to ISO 8601 format.
>
> -hpa
>
Thank you all for the comments. please review this follow-on patch.
- Feng
--
diff --git a/arch/x86/kernel/vrtc.c b/arch/x86/kernel/vrtc.c
index fa1eb63..0fbd74d 100644
--- a/arch/x86/kernel/vrtc.c
+++ b/arch/x86/kernel/vrtc.c
@@ -74,8 +74,8 @@ unsigned long vrtc_get_time(void)
/* vRTC YEAR reg contains the offset to 1960 */
year += 1960;
- printk(KERN_INFO "vRTC: sec: %d min: %d hour: %d day: %d "
- "mon: %d year: %d\n", sec, min, hour, mday, mon, year);
+ pr_debug("vrtc time: %4d-%02d-%02d %02d:%02d:%02d\n",
+ year, mon, mday, hour, min, sec);
return mktime(year, mon, mday, hour, min, sec);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists