summaryrefslogtreecommitdiff
path: root/test_geoid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-29 06:28:38 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-29 06:28:38 -0400
commitf628764ea400bb6e14342908ca595a0c91e5c5ab (patch)
treed154b1afc040d5be58f4e932e2f1774ed88a8859 /test_geoid.c
parentf6953c4bed4ee5bb010f52f689258825b7a0d8e5 (diff)
downloadgpsd-f628764ea400bb6e14342908ca595a0c91e5c5ab.tar.gz
Properly label debug reports from different programs.
All regression tests pass.
Diffstat (limited to 'test_geoid.c')
-rw-r--r--test_geoid.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test_geoid.c b/test_geoid.c
index e88251df..19e926ba 100644
--- a/test_geoid.c
+++ b/test_geoid.c
@@ -6,9 +6,21 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdarg.h>
#include "gpsd.h"
+void gpsd_report(const int debuglevel, const int errlevel,
+ const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ gpsd_labeled_report(debuglevel, errlevel, "geoid:", fmt, ap);
+ va_end(ap);
+
+}
+
int main(int argc, char **argv)
{
double lat, lon;