From 0026df5171a562ad978aa845f37110512acf21c1 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 10 Oct 2007 11:26:23 +0100 Subject: [PATCH] Fix printing month in printk prefix (1-12 rather than 0-11). Signed-off-by: Atsushi SAKAI --- xen/drivers/char/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index e47225e707..5d47071cd6 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -465,7 +465,7 @@ static void printk_start_of_line(void) return; snprintf(tstr, sizeof(tstr), "[%04u-%02u-%02u %02u:%02u:%02u] ", - 1900 + tm.tm_year, tm.tm_mon, tm.tm_mday, + 1900 + tm.tm_year, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); __putstr(tstr); } -- 2.39.5