From df34a3add8df382eb852a67635c6859ee8cc657f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 7 Mar 2015 11:51:15 -0500 Subject: gpsd-report() -> gpsd_log() This change is done so we can add a "log" hook to the pps_thread_t structure (this is not done yet) and harmonize with the name of the outer logging function. If that name had been left as gpsd_report() there would have been scope for bad confusion with the report_hook member. Also, remove two stray duplicative printf calls from the NMEA2000 driver (drivers shouldn't have printfs!) and fix one typo. This is a step towards factoring out ntplib. For that to happen, the PPS thread code needs to be decoupled from the core session structure. No logic changes. Object compatibility preserved. All regression tests pass. --- driver_rtcm3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver_rtcm3.c') diff --git a/driver_rtcm3.c b/driver_rtcm3.c index ffae5260..11bc504d 100644 --- a/driver_rtcm3.c +++ b/driver_rtcm3.c @@ -97,8 +97,8 @@ void rtcm3_unpack(const struct gps_context_t *context, rtcm->length = (uint)ugrab(10); rtcm->type = (uint)ugrab(12); - gpsd_report(&context->errout, LOG_RAW, "RTCM3: type %d payload length %d\n", - rtcm->type, rtcm->length); + gpsd_log(&context->errout, LOG_RAW, "RTCM3: type %d payload length %d\n", + rtcm->type, rtcm->length); switch (rtcm->type) { case 1001: /* GPS Basic RTK, L1 Only */ -- cgit v1.2.1