mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
proper line breaks in payload debug output
I guess the idea was to make a new line after every 16 elements, not every element except for every 16th
This commit is contained in:
parent
52c92aa3b2
commit
86b2df0ca6
@ -384,7 +384,7 @@ void recv_echo_req(void)
|
|||||||
for (size_t i = 0; i < data_len; i++) {
|
for (size_t i = 0; i < data_len; i++) {
|
||||||
printf("%02x ", echo_data_buf[i]);
|
printf("%02x ", echo_data_buf[i]);
|
||||||
|
|
||||||
if ((i + 1) % 16 || i == data_len - 1) {
|
if (!((i + 1) % 16) || i == data_len - 1) {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -411,7 +411,7 @@ void recv_echo_repl(void)
|
|||||||
for (size_t i = 0; i < data_len; i++) {
|
for (size_t i = 0; i < data_len; i++) {
|
||||||
printf("%02x ", echo_data_buf[i]);
|
printf("%02x ", echo_data_buf[i]);
|
||||||
|
|
||||||
if ((i + 1) % 16 || i == data_len - 1) {
|
if (!((i + 1) % 16) || i == data_len - 1) {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user