Change dev_info() to stdout and no longer redirect stderr to stdout
This commit is contained in:
parent
c21be27a7d
commit
7c8d336e27
|
@ -214,7 +214,7 @@ int dev_message(int msglvl, const char *fmt, ...) {
|
||||||
|
|
||||||
if(verbose >= msglvl) {
|
if(verbose >= msglvl) {
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
rc = vfprintf(stderr, fmt, ap);
|
rc = vfprintf(stdout, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
if(rc > 0)
|
if(rc > 0)
|
||||||
dev_nprinted += rc;
|
dev_nprinted += rc;
|
||||||
|
@ -651,9 +651,6 @@ void dev_output_part_defs(char *partdesc) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect stderr to stdout
|
|
||||||
fflush(stderr); fflush(stdout); dup2(1, 2);
|
|
||||||
|
|
||||||
all = *flags == '*';
|
all = *flags == '*';
|
||||||
cmdok = all || !!strchr(flags, 'c');
|
cmdok = all || !!strchr(flags, 'c');
|
||||||
descs = all || !!strchr(flags, 'd');
|
descs = all || !!strchr(flags, 'd');
|
||||||
|
@ -1087,9 +1084,6 @@ void dev_output_pgm_defs(char *pgmid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect stderr to stdout
|
|
||||||
fflush(stderr); fflush(stdout); dup2(1, 2);
|
|
||||||
|
|
||||||
astrc = !!strchr(flags, 'A');
|
astrc = !!strchr(flags, 'A');
|
||||||
strct = !!strchr(flags, 'S');
|
strct = !!strchr(flags, 'S');
|
||||||
cmpst = !!strchr(flags, 's');
|
cmpst = !!strchr(flags, 's');
|
||||||
|
|
Loading…
Reference in New Issue