Ignore:
Timestamp:
21/08/06 12:07:50 (13 years ago)
Author:
spascoe
Message:

Added temporary debug code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/writemessage.c

    r1265 r1426  
    7272    int     nbsent ; 
    7373 
     74    // DEBUG 
     75    // Do a checksum of the message and log it. 
     76    int i, c; 
     77    c = 0; 
     78    for (i = 0; i < msglen; i++) { 
     79      c += (int)buffer[i]; 
     80    } 
     81    PRINTMESSAGE(stdout, CASE_NORMAL, 0, timestamp, "writemessage: %d, chksum: %d\n", msglen, c); 
     82 
     83 
    7484    if ( fromchild == 1 ) { 
    7585        sprintf(ent,"Child %06d : ",getpid()) ; 
Note: See TracChangeset for help on using the changeset viewer.