From 5a8bbc99be0ec8ea264fca061276e9ec798bca5e Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 31 Oct 2006 06:41:42 +0000 Subject: Numerous changes: * Added 'ILoveCandy' support to all progress bars * Changed download callback with regards to libfetch libalpm changes * libfetch error output on failed sync * Misc others I may have forgot to name (check the diff, heh) --- src/pacman/log.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/pacman/log.c') diff --git a/src/pacman/log.c b/src/pacman/log.c index 52f30902..01a9a143 100644 --- a/src/pacman/log.c +++ b/src/pacman/log.c @@ -74,6 +74,7 @@ void cb_log(unsigned short level, char *msg) break; } +#ifdef PACMAN_DEBUG time_t t; struct tm *tmp; char timestr[10] = {0}; @@ -84,6 +85,9 @@ void cb_log(unsigned short level, char *msg) timestr[8] = '\0'; MSG(NL, "[%s] %s: %s\n", timestr, str, msg); +#else + MSG(NL, "%s: %s\n", str, msg); +#endif } /* Wrapper to fprintf() that allows to choose if we want the output @@ -96,7 +100,7 @@ void pm_fprintf(FILE *file, unsigned short line, char *fmt, ...) char str[LOG_STR_LEN]; if(neednl == 1 && line == NL) { - fprintf(stdout, "\n"); + fprintf(file, "\n"); neednl = 0; } -- cgit v1.2.3