r23226: Make the "debug prefix timestamp" output a bit more readable by making
authorVolker Lendecke <vlendec@samba.org>
Tue, 29 May 2007 19:36:13 +0000 (19:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:56 +0000 (12:22 -0500)
the debug level alway at least 2 digits
(This used to be commit 94d2fd919c268efa3df2661d2ccb32e492c52f53)

source3/lib/debug.c

index 049ef5cfa49d35e1cbd97add6ce9b1d1c9fa705b..4bbbf88d0d2b0665546cea5ec1fc88874feba93f 100644 (file)
@@ -979,7 +979,7 @@ BOOL dbghdr( int level, const char *file, const char *func, int line )
   
                /* Print it all out at once to prevent split syslog output. */
                if( lp_debug_prefix_timestamp() ) {
-                   (void)Debug1( "[%s, %d%s] ",
+                   (void)Debug1( "[%s, %2d%s] ",
                        current_timestring(lp_debug_hires_timestamp()), level,
                        header_str);
                } else {