summaryrefslogtreecommitdiff
path: root/gpsd_report.c
blob: 956b5f0bd1cd34500fdcbbd4b69da9279ec64d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * This file is Copyright (c) 2010 by the GPSD project
 * BSD terms apply: see the file COPYING in the distribution root for details.
 */
#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);
}