diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-07 11:51:15 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-07 11:51:15 -0500 |
commit | df34a3add8df382eb852a67635c6859ee8cc657f (patch) | |
tree | c52183ba41403d093ad1ac971fa45c4ba1289f0c /gpspacket.c | |
parent | 9c49083f2afe799343a610912b0ed404b2ffad05 (diff) | |
download | gpsd-df34a3add8df382eb852a67635c6859ee8cc657f.tar.gz |
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.
Diffstat (limited to 'gpspacket.c')
-rw-r--r-- | gpspacket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpspacket.c b/gpspacket.c index 0f4311a0..d8b36685 100644 --- a/gpspacket.c +++ b/gpspacket.c @@ -25,8 +25,8 @@ void errout_reset(struct gpsd_errout_t *errout) errout->report = basic_report; } -void gpsd_report(const struct gpsd_errout_t *errout UNUSED, - int errlevel, const char *fmt, ... ) +void gpsd_log(const struct gpsd_errout_t *errout UNUSED, + int errlevel, const char *fmt, ... ) { char buf[BUFSIZ]; PyObject *args; |