Change dev_info() to stdout and no longer redirect stderr to stdout

This commit is contained in:
Stefan Rueger 2022-08-09 09:23:26 +01:00
parent c21be27a7d
commit 7c8d336e27
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 1 additions and 7 deletions

View File

@ -214,7 +214,7 @@ int dev_message(int msglvl, const char *fmt, ...) {
if(verbose >= msglvl) {
va_start(ap, fmt);
rc = vfprintf(stderr, fmt, ap);
rc = vfprintf(stdout, fmt, ap);
va_end(ap);
if(rc > 0)
dev_nprinted += rc;
@ -651,9 +651,6 @@ void dev_output_part_defs(char *partdesc) {
return;
}
// Redirect stderr to stdout
fflush(stderr); fflush(stdout); dup2(1, 2);
all = *flags == '*';
cmdok = all || !!strchr(flags, 'c');
descs = all || !!strchr(flags, 'd');
@ -1087,9 +1084,6 @@ void dev_output_pgm_defs(char *pgmid) {
return;
}
// Redirect stderr to stdout
fflush(stderr); fflush(stdout); dup2(1, 2);
astrc = !!strchr(flags, 'A');
strct = !!strchr(flags, 'S');
cmpst = !!strchr(flags, 's');