Loading...
Searching...
No Matches
log_module.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
24#ifndef LOG_MODULE_H
25#define LOG_MODULE_H
26
27#include <stdio.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
42static inline void log_write(unsigned level, const char *format, ...) {
43 (void)level;
44 puts(format);
45}
46
47#ifdef __cplusplus
48}
49#endif
51#endif /* LOG_MODULE_H */
#define log_write(level,...)
Default log_write function, just maps to printf.
Definition log.h:106
stdio wrapper to extend the C libs stdio