summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpsmon.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gpsmon.c b/gpsmon.c
index fb597ebc..c60b9870 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -270,19 +270,8 @@ static void report_hook(const char *buf)
/*@-compdef@*/
static void packet_vlog(/*@out@*/char *buf, size_t len, const char *fmt, va_list ap)
{
- char buf2[BUFSIZ];
-
(void)vsnprintf(buf + strlen(buf), len, fmt, ap);
- visibilize(buf2, sizeof(buf2), buf);
-
- report_lock();
- if (!curses_active)
- (void)fputs(buf2, stdout);
- else if (packetwin != NULL)
- (void)waddstr(packetwin, buf2);
- if (logfile != NULL)
- (void)fputs(buf2, logfile);
- report_unlock();
+ report_hook(buf);
}
/*@+compdef@*/