Skip to content

Commit 768be05

Browse files
authored
Merge pull request #467 from adafruit/PR454-followup
partial revert PRITNF in lfs_util.h due to compilation error
2 parents 0a7d94e + 045f4f8 commit 768be05

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

cores/nRF5/common_inc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include <stdbool.h>
4141

4242
#include "compiler_macro.h"
43-
#include "verify.h"
4443
#include "common_func.h"
44+
#include "verify.h"
4545

4646
#endif /* COMMON_INC_H_ */

libraries/Adafruit_LittleFS/src/littlefs/lfs_util.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
#include <stdbool.h>
2525
#include <string.h>
2626

27-
#include "FreeRTOS.h"
28-
2927
#ifndef LFS_NO_MALLOC
3028
#include <stdlib.h>
3129
#endif
@@ -56,21 +54,21 @@ extern "C"
5654
// Logging functions
5755
#ifndef LFS_NO_DEBUG
5856
#define LFS_DEBUG(fmt, ...) \
59-
PRINTF("lfs debug:%d: " fmt "\n", __LINE__, __VA_ARGS__)
57+
printf("lfs debug:%d: " fmt "\n", __LINE__, __VA_ARGS__)
6058
#else
6159
#define LFS_DEBUG(fmt, ...)
6260
#endif
6361

6462
#ifndef LFS_NO_WARN
6563
#define LFS_WARN(fmt, ...) \
66-
PRINTF("lfs warn:%d: " fmt "\n", __LINE__, __VA_ARGS__)
64+
printf("lfs warn:%d: " fmt "\n", __LINE__, __VA_ARGS__)
6765
#else
6866
#define LFS_WARN(fmt, ...)
6967
#endif
7068

7169
#ifndef LFS_NO_ERROR
7270
#define LFS_ERROR(fmt, ...) \
73-
PRINTF("lfs error:%d: " fmt "\n", __LINE__, __VA_ARGS__)
71+
printf("lfs error:%d: " fmt "\n", __LINE__, __VA_ARGS__)
7472
#else
7573
#define LFS_ERROR(fmt, ...)
7674
#endif

0 commit comments

Comments
 (0)