[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 4/7] gpsmon: log the file name instead of its FILE *
From: |
Beat Bolli |
Subject: |
[gpsd-dev] [PATCH 4/7] gpsmon: log the file name instead of its FILE * |
Date: |
Sat, 2 Nov 2013 18:50:02 +0100 |
Signed-off-by: Beat Bolli <address@hidden>
---
gpsmon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gpsmon.c b/gpsmon.c
index 1ffd500..c79d7f3 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -543,14 +543,14 @@ static bool do_command(void)
if (logfile != NULL) {
if (packetwin != NULL)
(void)wprintw(packetwin,
- ">>> Logging to %s off", logfile);
+ ">>> Logging off\n");
(void)fclose(logfile);
}
if ((logfile = fopen(line + 1, "a")) != NULL)
if (packetwin != NULL)
(void)wprintw(packetwin,
- ">>> Logging to %s on", logfile);
+ ">>> Logging to %s\n", line + 1);
break;
#ifdef RECONFIGURE_ENABLE
--
1.8.4.rc3