master/module.c
changeset 1586 eb9185dfa8ac
parent 1581 e51cf2af3ff9
parent 1584 cd9a68fd5b89
child 1814 23fcca9ef1fb
--- a/master/module.c	Mon Dec 14 13:11:36 2009 +0100
+++ b/master/module.c	Mon Dec 14 13:25:50 2009 +0100
@@ -318,6 +318,8 @@
 /*****************************************************************************/
 
 /** Outputs frame contents for debugging purposes.
+ * If the data block is larger than 256 bytes, only the first 128
+ * and the last 128 bytes will be shown
  */
 void ec_print_data(const uint8_t *data, /**< pointer to data */
                    size_t size /**< number of bytes to output */
@@ -332,6 +334,12 @@
             printk("\n");
             EC_DBG("");
         }
+        if (i+1 == 128 && size > 256)
+        {
+            printk("dropped %d bytes\n",size-128-i);
+            i = size - 128;
+            EC_DBG("");
+        }
     }
     printk("\n");
 }