Skip to content
Snippets Groups Projects
Commit 20210896 authored by Florian Pose's avatar Florian Pose
Browse files

Improved newlines in debug data output.

parent 8c6140e8
No related branches found
No related tags found
No related merge requests found
......@@ -328,7 +328,7 @@ void ec_print_data(const uint8_t *data, /**< pointer to data */
EC_DBG("");
for (i = 0; i < size; i++) {
printk("%02X ", data[i]);
if ((i + 1) % 16 == 0) {
if ((i + 1) % 16 == 0 && i < size - 1) {
printk("\n");
EC_DBG("");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment