ia64/xen-unstable

changeset 16085:dc0199ff3968

Fix printing month in printk prefix (1-12 rather than 0-11).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
author Keir Fraser <keir@xensource.com>
date Wed Oct 10 11:26:23 2007 +0100 (2007-10-10)
parents 56f158c8644b
children e7ae19321560
files xen/drivers/char/console.c
line diff
     1.1 --- a/xen/drivers/char/console.c	Tue Oct 09 16:42:42 2007 +0100
     1.2 +++ b/xen/drivers/char/console.c	Wed Oct 10 11:26:23 2007 +0100
     1.3 @@ -465,7 +465,7 @@ static void printk_start_of_line(void)
     1.4          return;
     1.5  
     1.6      snprintf(tstr, sizeof(tstr), "[%04u-%02u-%02u %02u:%02u:%02u] ",
     1.7 -             1900 + tm.tm_year, tm.tm_mon, tm.tm_mday,
     1.8 +             1900 + tm.tm_year, tm.tm_mon + 1, tm.tm_mday,
     1.9               tm.tm_hour, tm.tm_min, tm.tm_sec);
    1.10      __putstr(tstr);
    1.11  }