Skip to content

Commit a5ce359

Browse files
committed
Reduce compiler warnings due to format string mismatches.
1 parent e62e803 commit a5ce359

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/nRF5/common_func.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ const char* dbg_err_str(int32_t err_id); // TODO move to other place
171171

172172
#define ADALOG_BUFFER(_tag, _buf, _n) \
173173
do {\
174-
if ( _tag ) PRINTF("%-6s: len = %d\n", _tag, _n);\
174+
const char * _xtag = _tag;\
175+
if ( _xtag ) PRINTF("%-6s: len = %d\n", _xtag, _n);\
175176
dbgDumpMemory(_buf, 1, _n, true);\
176177
}while(0)
177178

0 commit comments

Comments
 (0)