Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
lfs_log.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2024 Joshua DeWeese <josh.deweese@gmail.com>
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser General
5
* Public License v2.1. See the file LICENSE in the top level directory for more
6
* details.
7
*/
8
9
#pragma once
10
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
#include "log.h"
31
39
#define _LFS_LOG(level, fmt, ...)\
40
LOG(level, "lfs: "
fmt "%s\n", __VA_ARGS__)
41
50
#ifndef LFS_NO_DEBUG
51
# define LFS_DEBUG(...) _LFS_LOG(LOG_DEBUG, __VA_ARGS__, ""
)
52
#else
53
# define LFS_DEBUG(...)
54
#endif
55
57
#ifndef LFS_NO_WARN
58
# define LFS_WARN(...) _LFS_LOG(LOG_WARNING, __VA_ARGS__, ""
)
59
#else
60
# define LFS_WARN(...)
61
#endif
62
64
#ifndef LFS_NO_ERROR
65
# define LFS_ERROR(...) _LFS_LOG(LOG_ERROR, __VA_ARGS__, ""
)
66
#else
67
# define LFS_ERROR(...)
68
#endif
69
Generated on Mon Oct 20 2025 13:02:26 by
1.9.1