mirror of
https://github.com/emqx/neuron.git
synced 2026-10-28 05:56:39 +08:00
fix: plog_send_protocol and plog_recv_protocol format specifier
This commit is contained in:
@@ -71,7 +71,7 @@ extern zlog_category_t *neuron;
|
||||
for (int i = 0; i < n_byte; i++) { \
|
||||
offset += \
|
||||
snprintf(protocol_buf + offset, sizeof(protocol_buf) - offset, \
|
||||
" 0x%02X", bytes[i]); \
|
||||
" 0x%02hhX", bytes[i]); \
|
||||
} \
|
||||
plog_debug(plugin, "%s", protocol_buf);
|
||||
|
||||
@@ -82,7 +82,7 @@ extern zlog_category_t *neuron;
|
||||
for (int i = 0; i < n_byte; i++) { \
|
||||
offset += \
|
||||
snprintf(protocol_buf + offset, sizeof(protocol_buf) - offset, \
|
||||
" 0x%02X", bytes[i]); \
|
||||
" 0x%02hhX", bytes[i]); \
|
||||
} \
|
||||
plog_debug(plugin, "%s", protocol_buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user