diff --git a/pkg/littlefs/lfs_log.h b/pkg/littlefs/lfs_log.h index 1dd393616a223..0ffe264cf654a 100644 --- a/pkg/littlefs/lfs_log.h +++ b/pkg/littlefs/lfs_log.h @@ -33,7 +33,8 @@ extern "C" { /** * @brief Private macro for routing littlefs log msgs to RIOT's log module. * - * @param[in] fmt printf style format string + * @param[in] level log level of this log message + * @param[in] fmt printf style format string * @param[inout] ... printf style variadic args */ #define _LFS_LOG(level, fmt, ...)\ @@ -46,22 +47,25 @@ extern "C" { * @brief Re-implementation of littlefs's logging and debugging macros. */ +/** override of littlefs's `LFS_DEBUG()` */ #ifndef LFS_NO_DEBUG - #define LFS_DEBUG(...) _LFS_LOG(LOG_DEBUG, __VA_ARGS__, "") +# define LFS_DEBUG(...) _LFS_LOG(LOG_DEBUG, __VA_ARGS__, "") #else - #define LFS_DEBUG(...) +# define LFS_DEBUG(...) #endif +/** override of littlefs's `LFS_WARN()` */ #ifndef LFS_NO_WARN - #define LFS_WARN(...) _LFS_LOG(LOG_WARNING, __VA_ARGS__, "") +# define LFS_WARN(...) _LFS_LOG(LOG_WARNING, __VA_ARGS__, "") #else - #define LFS_WARN(...) +# define LFS_WARN(...) #endif +/** override of littlefs's `LFS_ERROR()` */ #ifndef LFS_NO_ERROR - #define LFS_ERROR(...) _LFS_LOG(LOG_ERROR, __VA_ARGS__, "") +# define LFS_ERROR(...) _LFS_LOG(LOG_ERROR, __VA_ARGS__, "") #else - #define LFS_ERROR(...) +# define LFS_ERROR(...) #endif /** @} */