diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-31 07:41:42 +0100 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-31 07:41:42 +0100 |
commit | 5a8bbc99be0ec8ea264fca061276e9ec798bca5e (patch) | |
tree | 0107af1d7d04ba0d67d6cf69d0b8bf1746f6137f /src/pacman/log.c | |
parent | af2fb3324a925af6caa9d53aacac92173fc47885 (diff) | |
download | pacman-5a8bbc99be0ec8ea264fca061276e9ec798bca5e.tar.gz pacman-5a8bbc99be0ec8ea264fca061276e9ec798bca5e.tar.xz |
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)
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r-- | src/pacman/log.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |