deepsy 22-Nitrogen
Main Page
Concepts
APIs
Tools
Contact
File List
File Members
sources
cpp
LIBRARIES
MIDDLEWARE
src
systemLog.h
1
#pragma once
2
#include <stdarg.h>
3
#include <syslog.h>
4
5
#if MIDDLEWARE_DEBUG
6
inline
void
log_msg(
int
priority,
const
char
*format, ...)
7
{
8
9
va_list vl;
10
11
va_start(vl, format);
12
vsyslog(priority, format, vl);
13
va_end(vl);
14
15
}
16
17
#else
18
inline
void
log_msg(__attribute__((unused))
int
priority, __attribute__((unused))
const
char
*format, ...)
19
{
20
21
}
22
#endif
Generated by