- Timestamp:
- 02/28/06 15:51:37 (16 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:
- 6c248a9
- Parents:
- 9fae46b
- Location:
- lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_erf.c
r9fae46b r4aa4615 917 917 erf_get_framing_length, /* get_framing_length */ 918 918 erf_set_capture_length, /* set_capture_length */ 919 erf_get_fd,/* get_fd */919 NULL, /* get_fd */ 920 920 trace_event_trace, /* trace_event */ 921 921 erf_help /* help */ -
lib/format_wag.c
rd8f02df r4aa4615 511 511 wag_get_framing_length, /* get_framing_length */ 512 512 NULL, /* set_capture_length */ 513 wag_get_fd,/* get_fd */513 NULL, /* get_fd */ 514 514 trace_event_trace, /* trace_event */ 515 515 wtf_help /* help */ -
lib/trace.c
r0d57541 r4aa4615 159 159 format_list[nformats] = f; 160 160 /* Now, verify things */ 161 #if 0 161 162 if (format_list[nformats]->init_input) { 162 163 #define REQUIRE(x) \ … … 179 180 "get_erf_timestamp, get_seconds or trace_timeval\n",format_list[nformats]->name); 180 181 } 182 if (format_list[nformats]->trace_event==trace_event_device) { 183 REQUIRE(get_fd); 184 } 185 else { 186 if (format_list[nformats]->get_fd) { 187 fprintf(stderr,"%s: Unnecessary get_fd\n", 188 format_list[nformats]->name); 189 } 190 } 181 191 #undef REQUIRE 182 192 } … … 194 204 REQUIRE(get_framing_length); 195 205 REQUIRE(trace_event); 206 REQUIRE(get_seconds); 207 REQUIRE(get_timeval); 208 REQUIRE(get_erf_timestamp); 196 209 #undef REQUIRE 197 210 } … … 216 229 #undef REQUIRE 217 230 } 231 #endif 218 232 nformats++; 219 233 } … … 285 299 /* parse the URI to determine what sort of event we are dealing with */ 286 300 if ((uridata = trace_parse_uri(uri, &scan)) == 0) { 287 trace_set_err(libtrace,TRACE_ERR_BAD_FORMAT,"Bad uri format ");301 trace_set_err(libtrace,TRACE_ERR_BAD_FORMAT,"Bad uri format (%s)",uri); 288 302 return libtrace; 289 303 } … … 406 420 407 421 if ((uridata = trace_parse_uri(uri, &scan)) == 0) { 408 trace_set_err_out(libtrace,TRACE_ERR_BAD_FORMAT,"Bad uri format ");422 trace_set_err_out(libtrace,TRACE_ERR_BAD_FORMAT,"Bad uri format (%s)",uri); 409 423 return libtrace; 410 424 }
Note: See TracChangeset
for help on using the changeset viewer.