From 20210896dfcbd349cae6c3facb5b1d19197ebcdb Mon Sep 17 00:00:00 2001 From: Florian Pose <fp@igh-essen.com> Date: Mon, 15 Jun 2009 15:29:24 +0000 Subject: [PATCH] Improved newlines in debug data output. --- master/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/module.c b/master/module.c index 9b7fc612..0162d4f2 100644 --- a/master/module.c +++ b/master/module.c @@ -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(""); } -- GitLab