cleanup specfile for packaging
[profile/ivi/gpsd.git] / gpsd_report.c
1 /*
2  * This file is Copyright (c) 2010 by the GPSD project
3  * BSD terms apply: see the file COPYING in the distribution root for details.
4  */
5 #include <sys/types.h>
6 #include <stdio.h>
7 #include <stdarg.h>
8 #include "gpsd.h"
9
10
11 # if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
12 void gpsd_report(int errlevel UNUSED, const char *fmt, ...)
13     __attribute__ ((weak));
14 #endif
15
16 void gpsd_report(int errlevel UNUSED, const char *fmt, ...)
17 /* stub logger for clients that don't supply one */
18 {
19     va_list ap;
20
21     va_start(ap, fmt);
22     (void)vfprintf(stderr, fmt, ap);
23     va_end(ap);
24 }