@@ -18,21 +18,21 @@ extern "C" {
1818#define STORAGE_BUFF_DIM 512
1919#define PRINT_SIZE 32
2020
21- extern char debug_buffer [STORAGE_BUFF_DIM];
21+ extern char rns_storage_dbg_buf [STORAGE_BUFF_DIM];
2222
2323/* * Output a debug message
2424 *
2525 * @param format printf-style format string, followed by variables
2626 */
27- static inline void debug (const char *fmt, ...)
27+ static inline void rns_storage_dbg (const char *fmt, ...)
2828{
29- memset (debug_buffer ,0x00 ,256 );
29+ memset (rns_storage_dbg_buf ,0x00 ,256 );
3030 va_list va;
3131 va_start (va, fmt);
32- vsnprintf (debug_buffer ,STORAGE_BUFF_DIM, fmt, va);
32+ vsnprintf (rns_storage_dbg_buf ,STORAGE_BUFF_DIM, fmt, va);
3333 va_end (va);
3434 if (Serial)
35- Serial.println (debug_buffer );
35+ Serial.println (rns_storage_dbg_buf );
3636}
3737
3838
@@ -44,20 +44,20 @@ static inline void debug(const char *fmt, ...)
4444 * @param condition output only if condition is true (!= 0)
4545 * @param format printf-style format string, followed by variables
4646 */
47- static inline void debug_if (int condition, const char *fmt, ...)
47+ static inline void rns_storage_dbg_if (int condition, const char *fmt, ...)
4848{
4949 if (condition) {
50- memset (debug_buffer ,0x00 ,256 );
50+ memset (rns_storage_dbg_buf ,0x00 ,256 );
5151 va_list va;
5252 va_start (va, fmt);
53- vsnprintf (debug_buffer ,STORAGE_BUFF_DIM, fmt, va);
53+ vsnprintf (rns_storage_dbg_buf ,STORAGE_BUFF_DIM, fmt, va);
5454 va_end (va);
5555 if (Serial)
56- Serial.println (debug_buffer );
56+ Serial.println (rns_storage_dbg_buf );
5757 }
5858}
5959
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)
6161{
6262 if (b != nullptr ) {
6363 Serial.println (" " );
@@ -76,16 +76,16 @@ static inline void debug_mem(uint8_t *b, uint32_t _size)
7676
7777#else
7878
79- static inline void debug_if (int condition, const char *format, ...) {
79+ static inline void rns_storage_dbg_if (int condition, const char *format, ...) {
8080 (void )condition;
8181 (void )format;
8282}
8383
84- static inline void debug (const char *format, ...) {
84+ static inline void rns_storage_dbg (const char *format, ...) {
8585 (void )format;
8686}
8787
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) {
8989 (void )b;
9090 (void )_size;
9191}
@@ -98,7 +98,7 @@ static inline void debug_mem(uint8_t *b, uint32_t _size) {
9898
9999#ifdef STORAGE_ASSERT
100100 #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 )
102102#else
103103 #define MBED_ASSERT (expr )
104104#endif
0 commit comments