Added some debug info

This commit is contained in:
Michiel Broek 2002-06-30 18:38:38 +00:00
parent 2e65956f07
commit 26014af40c

View File

@ -1823,7 +1823,7 @@ void BlueWave_Fetch()
buffer=b; buffer=b;
while (isspace(buffer[0])) while (isspace(buffer[0]))
buffer++; buffer++;
// Syslog('+', "Reading: %s ", buffer); Syslog('m', "Reading: %s ", buffer);
if ( ( strncasecmp(buffer,"[Global",7) == 0) && (strlen(buffer) > 22) ){ if ( ( strncasecmp(buffer,"[Global",7) == 0) && (strlen(buffer) > 22) ){
OLC_head=TRUE; OLC_head=TRUE;
continue; continue;
@ -1941,12 +1941,12 @@ void BlueWave_Fetch()
|| (strncasecmp(buffer,"Pers",4)==0)){ || (strncasecmp(buffer,"Pers",4)==0)){
if ( HEAD_written == FALSE ){ if ( HEAD_written == FALSE ){
fwrite(&Pdh,sizeof(PDQ_HEADER),1,tp); fwrite(&Pdh,sizeof(PDQ_HEADER),1,tp);
// Syslog('+', "Writting PDQ header..."); Syslog('m', "Writting PDQ header...");
HEAD_written = TRUE; HEAD_written = TRUE;
} }
if (strlen(Pdr.echotag) > 0){ if (strlen(Pdr.echotag) > 0){
fwrite(&Pdr,sizeof(PDQ_REC),1,tp); fwrite(&Pdr,sizeof(PDQ_REC),1,tp);
// Syslog('+', "Writting PDQ record: %s", Pdr.echotag); Syslog('m', "Writting PDQ record: %s", Pdr.echotag);
memset(&Pdr,0,sizeof(PDQ_REC)); memset(&Pdr,0,sizeof(PDQ_REC));
} }
} }