summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gpsctl.c b/gpsctl.c
index 8b9cd4a9..4af10913 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -31,6 +31,17 @@ static struct gps_context_t context;
*/
#define REDIRECT_SNIFF 15
+void gpsd_report(const int debuglevel, const int errlevel,
+ const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ gpsd_labeled_report(debuglevel, errlevel, "gpsctl:", fmt, ap);
+ va_end(ap);
+
+}
+
/*@ -noret @*/
static gps_mask_t get_packet(struct gps_device_t *session)
/* try to get a well-formed packet from the GPS */