[pacman-dev] [PATCH 1/3] Use stderr as output stream for pm_printf()
Dan McGee
dan at archlinux.org
Fri Oct 21 11:52:59 EDT 2011
This matches what we now do in our backend callback function- all
debug/info/warning/error/etc. messages should be on stderr. These are
all the messages with a "warning:" or other type prefix, so does not
affect general pacman output.
This should fix the output confusion noted in FS#26555.
Signed-off-by: Dan McGee <dan at archlinux.org>
---
This and the following two patches are for maint.
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 60e2914..1ca9b4d 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -1417,7 +1417,7 @@ int pm_printf(alpm_loglevel_t level, const char *format, ...)
/* print the message using va_arg list */
va_start(args, format);
- ret = pm_vfprintf(stdout, level, format, args);
+ ret = pm_vfprintf(stderr, level, format, args);
va_end(args);
return ret;
--
1.7.7
More information about the pacman-dev
mailing list