public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] printk timestamp post-boot suppression
@ 2008-08-27 15:16 Joe Korty
  2008-08-27 15:26 ` Simon Farnsworth
  2008-08-27 16:16 ` Mark Brown
  0 siblings, 2 replies; 9+ messages in thread
From: Joe Korty @ 2008-08-27 15:16 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linux Kernel

Suppress printk timestamping after system boot.

The timestamp printk prefix seems most useful during boot,
where it easily shows where the boot sequence is spending
its time.

Its utility after boot is questionable, since 1) the
timestamp becomes a rather large, unreadable integer,
as the hours, days and weeks go by, and 2) syslog does
a proper TOD timestamp anyways on these later messages,
as they go into /var/log/messages.

Signed-off-by: Joe Korty <joe.korty@ccur.com>

Index: 2.6.27-rc4-git4/kernel/printk.c
===================================================================
--- 2.6.27-rc4-git4.orig/kernel/printk.c	2008-08-26 16:28:41.000000000 -0400
+++ 2.6.27-rc4-git4/kernel/printk.c	2008-08-26 16:53:11.000000000 -0400
@@ -730,7 +730,7 @@
 			printed_len += 3;
 			new_text_line = 0;
 
-			if (printk_time) {
+			if (printk_time && system_state == SYSTEM_BOOTING) {
 				/* Follow the token with the time */
 				char tbuf[50], *tp;
 				unsigned tlen;

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-08-28  9:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 15:16 [PATCH] printk timestamp post-boot suppression Joe Korty
2008-08-27 15:26 ` Simon Farnsworth
2008-08-27 16:16 ` Mark Brown
2008-08-27 17:04   ` [PATCH] printk timestamp post-boot suppression, v2 Joe Korty
2008-08-27 17:13     ` Simon Farnsworth
2008-08-27 17:22       ` Joe Korty
2008-08-27 17:27         ` Joe Korty
2008-08-27 17:22     ` Andi Kleen
2008-08-28  9:40     ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox