FreeCalypso > hg > freecalypso-sw
comparison rvinterf/log.c @ 171:4d8e4c58df71
rvtdump: implemented Tx extension hack, compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 20 Nov 2013 05:39:31 +0000 |
parents | e0d56e9be8a2 |
children |
comparison
equal
deleted
inserted
replaced
170:4b53bd08f345 | 171:4d8e4c58df71 |
---|---|
29 curtm->tm_mon+1, curtm->tm_mday); | 29 curtm->tm_mon+1, curtm->tm_mday); |
30 fprintf(logF, "[%02d:%02d:%02d] %s\n", curtm->tm_hour, curtm->tm_min, | 30 fprintf(logF, "[%02d:%02d:%02d] %s\n", curtm->tm_hour, curtm->tm_min, |
31 curtm->tm_sec, pr_item); | 31 curtm->tm_sec, pr_item); |
32 bcopy(curtm, &last_tm, sizeof(struct tm)); | 32 bcopy(curtm, &last_tm, sizeof(struct tm)); |
33 } | 33 } |
34 | |
35 log_sent_packet(pkt, pktlen) | |
36 u_char *pkt; | |
37 { | |
38 int i; | |
39 char *dp; | |
40 | |
41 dp = pr_item; | |
42 strcpy(dp, "Sent"); | |
43 dp += 4; | |
44 for (i = 0; i < pktlen; i++) { | |
45 sprintf(dp, " %02X", pkt[i]); | |
46 dp += 3; | |
47 } | |
48 *dp = '\0'; | |
49 print_item(); | |
50 } |