mirror of
https://github.com/moparisthebest/pacman
synced 2024-10-31 15:45:03 -04:00
Use stderr as output stream for pm_printf()
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@archlinux.org>
This commit is contained in:
parent
4bada45464
commit
45f86ca1ca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user