QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
logging.cpp
Go to the documentation of this file.
2
4
5QGC_LOGGING_CATEGORY(EventsLog, "API.Events")
6
7void qgc_events_parser_debug_printf(const char *fmt, ...) {
8 char msg[256];
9 va_list argptr;
10 va_start(argptr, fmt);
11 vsnprintf(msg, sizeof(msg), fmt, argptr);
12 va_end(argptr);
13 msg[sizeof(msg)-1] = '\0';
14 int len = strlen(msg);
15 if (len > 0) msg[len-1] = '\0'; // remove newline
16 qCDebug(EventsLog) << msg;
17}
#define QGC_LOGGING_CATEGORY(name, categoryStr)
void qgc_events_parser_debug_printf(const char *fmt,...)
Definition logging.cpp:7