|
50 | 50 | # endif |
51 | 51 |
|
52 | 52 | # if CONFIG_NIMBLE_CPP_LOG_LEVEL >= 4 |
53 | | -# define NIMBLE_LOGD( tag, format, ... ) console_printf("D %s: "#format"\n",tag,##__VA_ARGS__) |
| 53 | +# define NIMBLE_LOGD( tag, format, ... ) console_printf("D %s: " format "\n", tag, ##__VA_ARGS__) |
54 | 54 | # else |
55 | 55 | # define NIMBLE_LOGD( tag, format, ... ) (void)tag |
56 | 56 | # endif |
57 | 57 |
|
58 | 58 | # if CONFIG_NIMBLE_CPP_LOG_LEVEL >= 3 |
59 | | -# define NIMBLE_LOGI( tag, format, ... ) console_printf("I %s: "#format"\n",tag,##__VA_ARGS__) |
| 59 | +# define NIMBLE_LOGI( tag, format, ... ) console_printf("I %s: " format "\n", tag, ##__VA_ARGS__) |
60 | 60 | # else |
61 | 61 | # define NIMBLE_LOGI( tag, format, ... ) (void)tag |
62 | 62 | # endif |
63 | 63 |
|
64 | 64 | # if CONFIG_NIMBLE_CPP_LOG_LEVEL >= 2 |
65 | | -# define NIMBLE_LOGW( tag, format, ... ) console_printf("W %s: "#format"\n",tag,##__VA_ARGS__) |
| 65 | +# define NIMBLE_LOGW( tag, format, ... ) console_printf("W %s: " format "\n", tag, ##__VA_ARGS__) |
66 | 66 | # else |
67 | 67 | # define NIMBLE_LOGW( tag, format, ... ) (void)tag |
68 | 68 | # endif |
69 | 69 |
|
70 | 70 | # if CONFIG_NIMBLE_CPP_LOG_LEVEL >= 1 |
71 | | -# define NIMBLE_LOGE( tag, format, ... ) console_printf("E %s: "#format"\n",tag,##__VA_ARGS__) |
72 | | -# define NIMBLE_LOGC( tag, format, ... ) console_printf("CRIT %s: "#format"\n",tag,##__VA_ARGS__) |
| 71 | +# define NIMBLE_LOGE( tag, format, ... ) console_printf("E %s: " format "\n", tag, ##__VA_ARGS__) |
| 72 | +# define NIMBLE_LOGC( tag, format, ... ) console_printf("CRIT %s: " format "\n", tag, ##__VA_ARGS__) |
73 | 73 | # else |
74 | 74 | # define NIMBLE_LOGE( tag, format, ... ) (void)tag |
75 | 75 | # define NIMBLE_LOGC( tag, format, ... ) (void)tag |
|
0 commit comments