fix: plog_send_protocol and plog_recv_protocol format specifier

This commit is contained in:
eeff
2022-06-20 13:48:18 +08:00
parent 7b842956bb
commit fae01c42f6
+2 -2
View File
@@ -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);