summaryrefslogtreecommitdiff
path: root/gpspacket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-12 23:16:31 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-12 23:16:31 +0000
commit4464c9213776281393c6d66b3b2030b422870f44 (patch)
treeb42eeca198aef991dc52b0f9e1eeadbd4f3f4b69 /gpspacket.c
parent582c3bddadacba8ee0535bd5b3431748e0444d15 (diff)
downloadgpsd-4464c9213776281393c6d66b3b2030b422870f44.tar.gz
Improve the packet instrumentation slightly.
Diffstat (limited to 'gpspacket.c')
-rw-r--r--gpspacket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpspacket.c b/gpspacket.c
index aee37742..69d16fae 100644
--- a/gpspacket.c
+++ b/gpspacket.c
@@ -18,6 +18,8 @@ void gpsd_report(int errlevel, const char *fmt, ... )
PyObject *args;
va_list ap;
+ gpsd_hexdump_level = errlevel;
+
if (!report_callback) /* no callback defined, exit early */
return;
@@ -267,4 +269,6 @@ initgpspacket(void)
PyModule_AddIntConstant(m, "RTCM3_PACKET", RTCM3_PACKET);
PyModule_AddIntConstant(m, "UBX_PACKET", UBX_PACKET);
PyModule_AddIntConstant(m, "GARMINTXT_PACKET", GARMINTXT_PACKET);
+
+ PyModule_AddIntConstant(m, "LOG_IO", LOG_IO);
}