@@ -18,21 +18,21 @@ extern "C" {
18
18
#define STORAGE_BUFF_DIM 512
19
19
#define PRINT_SIZE 32
20
20
21
- extern char debug_buffer [STORAGE_BUFF_DIM];
21
+ extern char rns_storage_dbg_buf [STORAGE_BUFF_DIM];
22
22
23
23
/* * Output a debug message
24
24
*
25
25
* @param format printf-style format string, followed by variables
26
26
*/
27
- static inline void debug (const char *fmt, ...)
27
+ static inline void rns_storage_dbg (const char *fmt, ...)
28
28
{
29
- memset (debug_buffer ,0x00 ,256 );
29
+ memset (rns_storage_dbg_buf ,0x00 ,256 );
30
30
va_list va;
31
31
va_start (va, fmt);
32
- vsnprintf (debug_buffer ,STORAGE_BUFF_DIM, fmt, va);
32
+ vsnprintf (rns_storage_dbg_buf ,STORAGE_BUFF_DIM, fmt, va);
33
33
va_end (va);
34
34
if (Serial)
35
- Serial.println (debug_buffer );
35
+ Serial.println (rns_storage_dbg_buf );
36
36
}
37
37
38
38
@@ -44,20 +44,20 @@ static inline void debug(const char *fmt, ...)
44
44
* @param condition output only if condition is true (!= 0)
45
45
* @param format printf-style format string, followed by variables
46
46
*/
47
- static inline void debug_if (int condition, const char *fmt, ...)
47
+ static inline void rns_storage_dbg_if (int condition, const char *fmt, ...)
48
48
{
49
49
if (condition) {
50
- memset (debug_buffer ,0x00 ,256 );
50
+ memset (rns_storage_dbg_buf ,0x00 ,256 );
51
51
va_list va;
52
52
va_start (va, fmt);
53
- vsnprintf (debug_buffer ,STORAGE_BUFF_DIM, fmt, va);
53
+ vsnprintf (rns_storage_dbg_buf ,STORAGE_BUFF_DIM, fmt, va);
54
54
va_end (va);
55
55
if (Serial)
56
- Serial.println (debug_buffer );
56
+ Serial.println (rns_storage_dbg_buf );
57
57
}
58
58
}
59
59
60
- static inline void debug_mem (uint8_t *b, uint32_t _size)
60
+ static inline void rns_storage_dbg_mem (uint8_t *b, uint32_t _size)
61
61
{
62
62
if (b != nullptr ) {
63
63
Serial.println (" " );
@@ -76,16 +76,16 @@ static inline void debug_mem(uint8_t *b, uint32_t _size)
76
76
77
77
#else
78
78
79
- static inline void debug_if (int condition, const char *format, ...) {
79
+ static inline void rns_storage_dbg_if (int condition, const char *format, ...) {
80
80
(void )condition;
81
81
(void )format;
82
82
}
83
83
84
- static inline void debug (const char *format, ...) {
84
+ static inline void rns_storage_dbg (const char *format, ...) {
85
85
(void )format;
86
86
}
87
87
88
- static inline void debug_mem (uint8_t *b, uint32_t _size) {
88
+ static inline void rns_storage_dbg_mem (uint8_t *b, uint32_t _size) {
89
89
(void )b;
90
90
(void )_size;
91
91
}
@@ -98,7 +98,7 @@ static inline void debug_mem(uint8_t *b, uint32_t _size) {
98
98
99
99
#ifdef STORAGE_ASSERT
100
100
#define MBED_ASSERT (expr ) do { if (!(expr)) { \
101
- debug (" ASSERT FAILED at line %d in file %s" ,__LINE__,__FILE__); }} while (0 )
101
+ rns_storage_dbg (" ASSERT FAILED at line %d in file %s" ,__LINE__,__FILE__); }} while (0 )
102
102
#else
103
103
#define MBED_ASSERT (expr )
104
104
#endif
0 commit comments