# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1192011983 -3600
# Node ID dc0199ff39686d9d811620bf346c0d0043ef61ea
# Parent 56f158c8644b0f9423cc17177eff9df5f1be381c
Fix printing month in printk prefix (1-12 rather than 0-11).
Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
---
xen/drivers/char/console.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 56f158c8644b -r dc0199ff3968 xen/drivers/char/console.c
--- a/xen/drivers/char/console.c Tue Oct 09 16:42:42 2007 +0100
+++ b/xen/drivers/char/console.c Wed Oct 10 11:26:23 2007 +0100
@@ -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);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|