Changeset e1868fb
- Timestamp:
- 12/31/06 17:41:10 (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:
- 4746c71
- Parents:
- e2d49d5
- Location:
- lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/libtrace.h.in
r4bd8a5b re1868fb 140 140 # define UNUSED __attribute__((unused)) 141 141 # define PACKED __attribute__((packed)) 142 # define PRINTF(formatpos,argpos) __attribute__((format(printf,formatpos,argpos))) 142 143 #else 143 144 # define SIMPLE_FUNCTION 144 145 # define UNUSED 145 146 # define PACKED 147 # define PRINTF(formatpos,argpos) 146 148 #endif 147 149 … … 787 789 * This function does clear the error status. 788 790 */ 789 DLLEXPORT void trace_perror(libtrace_t *trace, const char *msg,...) ;791 DLLEXPORT void trace_perror(libtrace_t *trace, const char *msg,...) PRINTF(2,3); 790 792 791 793 /** Check (and clear) the current error state of an output trace … … 808 810 * This function does clear the error status. 809 811 */ 810 DLLEXPORT void trace_perror_output(libtrace_out_t *trace, const char *msg,...); 812 DLLEXPORT void trace_perror_output(libtrace_out_t *trace, const char *msg,...) 813 PRINTF(2,3); 811 814 812 815 -
lib/libtrace_int.h
r4bd8a5b re1868fb 150 150 }; 151 151 152 void trace_set_err(libtrace_t *trace, int errcode,const char *msg,...); 153 void trace_set_err_out(libtrace_out_t *trace, int errcode, const char *msg,...); 152 void trace_set_err(libtrace_t *trace, int errcode,const char *msg,...) 153 PRINTF(3,4); 154 void trace_set_err_out(libtrace_out_t *trace, int errcode, const char *msg,...) 155 PRINTF(3,4); 154 156 155 157 typedef struct libtrace_sll_header_t { -
lib/trace.c
r4bd8a5b re1868fb 241 241 * and then prints out the help() function registered with each input module 242 242 */ 243 DLLEXPORT void trace_help( ) {243 DLLEXPORT void trace_help(void) { 244 244 struct libtrace_format_t *tmp; 245 245 trace_init(); … … 1171 1171 1172 1172 /* dynamic range */ 1173 if (DYNAMIC(source) && DYNAMIC(dest)) 1173 if (DYNAMIC(source) && DYNAMIC(dest)) { 1174 1174 if (source < dest) 1175 1175 return USE_SOURCE; 1176 1176 return USE_DEST; 1177 } 1177 1178 if (DYNAMIC(source) && !DYNAMIC(dest)) 1178 1179 return USE_DEST;
Note: See TracChangeset
for help on using the changeset viewer.