Sorry, I resent reverse patch earlier 
setting timestamp for debug messages
---
--- debug.h_back        2011-06-09 09:27:55.528702570 -0400
+++ debug.h     2011-06-09 17:49:48.179702849 -0400
@@ -1,12 +1,16 @@
+#include<stdio.h>
+#include<time.h>
+
 #ifndef _DEBUG_H_
 #define _DEBUG_H_
 
 extern int debug_mode;
 extern FILE *logfile;
+time_t t;
 
-#define dprintf(m...) do {                     \
+#define dprintf(m,time...) do {                        \
                if (debug_mode) {               \
-                       fprintf(logfile, m);    \
+                       fprintf(logfile,"%s %s",ctime(&t),m);   \
                        fflush(logfile);        \
                }                               \
        } while (0)
---
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to