On 21/08/11 03:08, Dan McGee wrote:
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<[email protected]>


You and your insistence on fixing things correctly...  :P

Signed-off-by: Allan

---
  src/pacman/util.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pacman/util.c b/src/pacman/util.c
index 91625a1..9c1e646 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



Reply via email to