diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-09-29 01:42:45 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-09-29 01:46:53 -0400 |
commit | 4361ec2d89bdf451602d659ddfd0fb9a79c178a2 (patch) | |
tree | af067d1d7614a9e67f449eec933ba3347cde10b0 /gpsdecode.c | |
parent | a77b95b57475c2856707e91b197f8aaa8e5eb407 (diff) | |
download | gpsd-4361ec2d89bdf451602d659ddfd0fb9a79c178a2.tar.gz |
Change gpsd_report to no longer use a global. All regression tests pass.
This is a large, ugly change. But without it we can't troubleshoot the
ICP/IP-source initialization bug properly - colliding definitions of
gpsd_report() were interfering with error reporting early in gpsd runs.
More cleanup work remains to be done, but at least this is working.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gpsdecode.c b/gpsdecode.c index 25b1d002..90799f3d 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -27,22 +27,6 @@ static unsigned int typelist[32]; * **************************************************************************/ -void gpsd_report(int errlevel, const char *fmt, ...) -/* assemble command in printf(3) style, use stderr or syslog */ -{ - if (errlevel <= verbose) { - char buf[BUFSIZ]; - va_list ap; - - (void)strlcpy(buf, "gpsdecode: ", BUFSIZ); - va_start(ap, fmt); - (void)vsnprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), fmt, - ap); - va_end(ap); - (void)fputs(buf, stderr); - } -} - #ifdef AIVDM_ENABLE static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen) { |