mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/log_color: fix string literal error
printf function requires a string literal as the format argument. Using a character pointer is not accepted as string literal by some compilers.
This commit is contained in:
parent
855ef72202
commit
41e31c516c
@ -18,11 +18,12 @@
|
||||
|
||||
#include "log.h"
|
||||
|
||||
#define format "Logging value '%d' and string '%s'\n"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
const uint8_t value = 42;
|
||||
const char *string = "test";
|
||||
const char *format = "Logging value '%d' and string '%s'\n";
|
||||
|
||||
LOG_ERROR(format, value, string);
|
||||
LOG_WARNING(format, value, string);
|
||||
|
Loading…
Reference in New Issue
Block a user