Changeset abc8e94
- Timestamp:
- 04/08/06 16:13:30 (15 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 8afe034
- Parents:
- c7658ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace.c
r67a14d4 rabc8e94 1009 1009 #else 1010 1010 assert(!"This should never be called when BPF not enabled"); 1011 trace_set_err(packet->trace,TRACE_ERR_OPTION_UNAVAIL, 1012 "Feature unavailable"); 1013 return -1; 1011 1014 #endif 1012 1015 } … … 1382 1385 { 1383 1386 char *buf2 = buf; 1384 static char staticbuf[1 7]={0,};1387 static char staticbuf[18]={0,}; 1385 1388 if (!buf2) 1386 1389 buf2=staticbuf; 1387 s printf(buf2,"%02x:%02x:%02x:%02x:%02x:%02x",1390 snprintf(buf2,18,"%02x:%02x:%02x:%02x:%02x:%02x", 1388 1391 addr[0],addr[1],addr[2], 1389 1392 addr[3],addr[4],addr[5]);
Note: See TracChangeset
for help on using the changeset viewer.