poldek: poldek/log.c, poldek/log.h - prefixed trace (debug) messages
mis
mis at pld-linux.org
Wed Jan 23 23:57:46 CET 2008
Author: mis Date: Wed Jan 23 22:57:46 2008 GMT
Module: poldek Tag: HEAD
---- Log message:
- prefixed trace (debug) messages
---- Files affected:
poldek/poldek:
log.c (1.35 -> 1.36) , log.h (1.28 -> 1.29)
---- Diffs:
================================================================
Index: poldek/poldek/log.c
diff -u poldek/poldek/log.c:1.35 poldek/poldek/log.c:1.36
--- poldek/poldek/log.c:1.35 Mon Jul 9 19:06:25 2007
+++ poldek/poldek/log.c Wed Jan 23 23:57:41 2008
@@ -256,7 +256,10 @@
n = poldek_term_snprintf_c(PRCOLOR_YELLOW | PRAT_BOLD, buf, sizeof(buf),
_("notice: "));
+ else if (pri & LOGDEBUG)
+ n = n_snprintf(buf, sizeof(buf), ":");
+
if (n > 0)
fprintf(stdout, "%s", buf);
================================================================
Index: poldek/poldek/log.h
diff -u poldek/poldek/log.h:1.28 poldek/poldek/log.h:1.29
--- poldek/poldek/log.h:1.28 Mon Jul 9 19:06:25 2007
+++ poldek/poldek/log.h Wed Jan 23 23:57:41 2008
@@ -140,13 +140,13 @@
# define tracef(indent, fmt, args...) \
do { \
if (poldek_TRACE > 0) \
- log_i(LOGINFO|LOGOPT_N, indent, "%s() " fmt, __FUNCTION__, ## args); \
+ log_i(LOGDEBUG|LOGOPT_N, indent, "%s() " fmt, __FUNCTION__, ## args); \
} while(0)
# define trace(indent, fmt, args...) \
do { \
if (poldek_TRACE > 0) \
- log_i(LOGINFO|LOGOPT_N, indent, fmt, ## args); \
+ log_i(LOGDEBUG|LOGOPT_N, indent, fmt, ## args); \
} while(0)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/log.c?r1=1.35&r2=1.36&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/log.h?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list