aboutsummaryrefslogtreecommitdiffstats
path: root/src/myfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/myfprintf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/myfprintf.c b/src/myfprintf.c
index 7a547f92e..500414d0b 100644
--- a/src/myfprintf.c
+++ b/src/myfprintf.c
@@ -92,14 +92,16 @@ int myfprintfCloseAndOpenLogFile(void)
fopen(myfprintf_outFilename, "a+")) == NULL
&& errno == EINTR) ;
if (!myfprintf_out) {
- ERROR("error re-opening log file: %s\n", myfprintf_out);
+ ERROR("error re-opening log file: %s\n",
+ myfprintf_outFilename);
return -1;
}
while ((myfprintf_err =
fopen(myfprintf_errFilename, "a+")) == NULL
&& errno == EINTR) ;
- if (!myfprintf_out) {
- ERROR("error re-opening log file: %s\n", myfprintf_out);
+ if (!myfprintf_err) {
+ ERROR("error re-opening error file: %s\n",
+ myfprintf_errFilename);
return -1;
}
while (dup2(fileno(myfprintf_out), 1) < 0 && errno == EINTR) ;