Loading...
Searching...
No Matches
log_module.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
22
23#include <stdio.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
38static inline void log_write(unsigned level, const char *format, ...) {
39 (void)level;
40 puts(format);
41}
42
43#ifdef __cplusplus
44}
45#endif
#define log_write(level,...)
Default log_write function, just maps to printf.
Definition log.h:136