summaryrefslogtreecommitdiff
path: root/gpsd_report.c
blob: 74a00fa643343fa9eb21a4f3956f6fb8bd1cb2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* $Id$ */
#include <sys/types.h>
#include <stdio.h>
#include <stdarg.h>
#include "gpsd.h"


# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
void gpsd_report(int errlevel UNUSED, const char *fmt, ... ) __attribute__ ((weak));
#endif

void gpsd_report(int errlevel UNUSED, const char *fmt, ... )
/* stub logger for clients that don't supply one */
{
    va_list ap;

    va_start(ap, fmt);
    (void)vfprintf(stderr, fmt, ap);
    va_end(ap);
}