partial revert PRITNF in lfs_util.h due to compilation error

This commit is contained in:
hathach committed 2020-03-20 11:32:42 +07:00
1 parent 0a7d94e244
commit 045f4f8cca
2 files changed
+4 -6

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@
#include <stdbool.h>
#include "compiler_macro.h"
#include "verify.h"
#include "common_func.h"
#include "verify.h"
#endif /* COMMON_INC_H_ */
@@ -24,8 +24,6 @@
#include <stdbool.h>
#include <string.h>
#include "FreeRTOS.h"
#ifndef LFS_NO_MALLOC
#include <stdlib.h>
#endif
@@ -56,21 +54,21 @@ extern "C"
// Logging functions
#ifndef LFS_NO_DEBUG
#define LFS_DEBUG(fmt, ...) \
PRINTF("lfs debug:%d: " fmt "\n", __LINE__, __VA_ARGS__)
printf("lfs debug:%d: " fmt "\n", __LINE__, __VA_ARGS__)
#else
#define LFS_DEBUG(fmt, ...)
#endif
#ifndef LFS_NO_WARN
#define LFS_WARN(fmt, ...) \
PRINTF("lfs warn:%d: " fmt "\n", __LINE__, __VA_ARGS__)
printf("lfs warn:%d: " fmt "\n", __LINE__, __VA_ARGS__)
#else
#define LFS_WARN(fmt, ...)
#endif
#ifndef LFS_NO_ERROR
#define LFS_ERROR(fmt, ...) \
PRINTF("lfs error:%d: " fmt "\n", __LINE__, __VA_ARGS__)
printf("lfs error:%d: " fmt "\n", __LINE__, __VA_ARGS__)
#else
#define LFS_ERROR(fmt, ...)
#endif