[pisa-src] r1754 - trunk/libpisa/debug.c

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 24 Nov 2009 10:37:01 +0100

Author: biurrun
Date: Tue Nov 24 10:37:00 2009
New Revision: 1754

Log:
Remove pointless debug macros.

Modified:
   trunk/libpisa/debug.c

Modified: trunk/libpisa/debug.c
==============================================================================
--- trunk/libpisa/debug.c       Tue Nov 24 10:35:43 2009        (r1753)
+++ trunk/libpisa/debug.c       Tue Nov 24 10:37:00 2009        (r1754)
@@ -377,8 +377,6 @@
        hexdump = (char *) calloc(hexdump_total_size, sizeof(char));
        asciidump = (char *) calloc((bytes_per_line + 2), sizeof(char));
 
-       _PISA_DEBUG("hexdump_total_size: %d, pad_start_position: %d, 
pad_length: %d\n", 
-               hexdump_total_size, pad_start_position, pad_length);
        if (hexdump == NULL || asciidump == NULL) {
        PISA_DIE("memory allocation failed\n");
        }
@@ -419,13 +417,10 @@
                        /* If line is full or input is all read, copy data to 
hexdump */
                        if (line_index >= 16 || (char_index + 1) == len) {
                                // Add padding
-                               _PISA_DEBUG("Line ready\n");
                                if ((char_index + 1) == len && pad_length > 0
                                        && ((hexdump_index + line_index + 
pad_length) < hexdump_total_size)) 
                                {
                                        char * padding = (char *) 
calloc(pad_length + 1, sizeof(char));
-                                       _PISA_DEBUG("Creating padding for the 
last line... \n");
-                                       _PISA_DEBUG("hexdump_index: %d, 
line_index: %d\n", hexdump_index, line_index);
                                        memset(padding, ' ', pad_length);
                                        memset(padding + pad_length, '\0', 1);
                                        hexdump_written = snprintf((char *) 
(hexdump + hexdump_index), 

Other related posts:

  • » [pisa-src] r1754 - trunk/libpisa/debug.c - Diego Biurrun