summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-20 19:07:15 +0200
committerDan McGee <dan@archlinux.org>2011-08-22 15:53:01 +0200
commita98babbfef725147748fc1be149a57b1beaac615 (patch)
treee431a7aafa2271e6250efab9b7b9c909d73e0ed1 /src
parent343ea8171815debe3fc5a55ad0eeaf6c35f90bb9 (diff)
downloadpacman-a98babbfef725147748fc1be149a57b1beaac615.tar.gz
pacman-a98babbfef725147748fc1be149a57b1beaac615.tar.xz
Print debug timestamps to same stream as rest of output
We used fprintf() elsewhere in this function, but we didn't use it on the debug timestamp printing. Use fprintf() instead of printf() to fix this. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 91625a12..9c1e6463 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -1416,7 +1416,7 @@ int pm_vfprintf(FILE *stream, alpm_loglevel_t level, const char *format, va_list
strftime(timestr, 9, "%H:%M:%S", tmp);
timestr[8] = '\0';
- printf("[%s] ", timestr);
+ fprintf(stream, "[%s] ", timestr);
}
#endif