diff options
Diffstat (limited to 'driver_rtcm3.c')
-rw-r--r-- | driver_rtcm3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_rtcm3.c b/driver_rtcm3.c index 90fbdae5..f5e6f832 100644 --- a/driver_rtcm3.c +++ b/driver_rtcm3.c @@ -65,7 +65,8 @@ BSD terms apply: see the file COPYING in the distribution root for details. /* *INDENT-OFF* */ /*@ -type @*//* re-enable when we're ready to take this live */ -void rtcm3_unpack( /*@out@*/ struct rtcm3_t *rtcm, char *buf) +void rtcm3_unpack(const int debug, + /*@out@*/ struct rtcm3_t *rtcm, char *buf) /* break out the raw bits into the scaled report-structure fields */ { unsigned int n, n2, n3, n4; @@ -96,7 +97,7 @@ void rtcm3_unpack( /*@out@*/ struct rtcm3_t *rtcm, char *buf) rtcm->length = (uint)ugrab(10); rtcm->type = (uint)ugrab(12); - gpsd_report(LOG_RAW, "RTCM3: type %d payload length %d\n", + gpsd_report(debug, LOG_RAW, "RTCM3: type %d payload length %d\n", rtcm->type, rtcm->length); switch (rtcm->type) { |