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/readmessage.c

    r1265 r1426  
    116116        } 
    117117    } 
     118 
     119    // DEBUG 
     120    // Do a checksum of the message and log it. 
     121    int i, c; 
     122    c = 0; 
     123    for (i = 0; i < msglen; i++) { 
     124      c += (int)buffer[i]; 
     125    } 
     126    PRINTMESSAGE(stdout, CASE_NORMAL, 0, timestamp, "readmessage: %d, chksum: %d\n", msglen, c); 
     127 
    118128    return(0) ; 
     129 
    119130} 
    120131int discardmessage(int sock,int msglen,int to,int fromchild)  
     
    127138    char    buffer[256] ; 
    128139    char    ent[40] ; 
     140 
     141    // DEBUG 
     142    // Do a checksum of the message and log it. 
     143    PRINTMESSAGE(stdout, CASE_NORMAL, 0, timestamp, "discardmessage: %d\n", msglen); 
     144 
    129145 
    130146    if ( fromchild == 1 ) { 
Note: See TracChangeset for help on using the changeset viewer.