Improved newlines in debug data output.
authorFlorian Pose <fp@igh-essen.com>
Mon, 15 Jun 2009 15:29:24 +0000
changeset 1469 873e4ee3d5ec
parent 1468 0a804ddbaf93
child 1470 cb424feef942
Improved newlines in debug data output.
master/module.c
--- a/master/module.c	Mon Jun 15 12:33:48 2009 +0000
+++ b/master/module.c	Mon Jun 15 15:29:24 2009 +0000
@@ -328,7 +328,7 @@
     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("");
         }