Changeset 2193905 for lib/format_linux_common.c
- Timestamp:
- 11/29/18 10:12:59 (2 years ago)
- Branches:
- develop
- Children:
- fdf23b8
- Parents:
- d74ca03
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux_common.c
r2725318 r2193905 40 40 #include <unistd.h> 41 41 #include <string.h> 42 #include <assert.h>43 42 44 43 #ifdef HAVE_INTTYPES_H … … 186 185 malloc(sizeof(struct linux_format_data_t)); 187 186 188 /*assert(libtrace->format_data != NULL);*/189 187 if (!libtrace->format_data) { 190 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Unable to allocate memory linuxcommon_init_input()"); 188 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Unable to allocate memory for " 189 "format data inside linuxcommon_init_input()"); 191 190 return -1; 192 191 } … … 195 194 libtrace_list_init(sizeof(stream_data)); 196 195 197 /*assert(FORMAT_DATA->per_stream != NULL);*/198 196 if (!FORMAT_DATA->per_stream) { 199 197 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Unable to create list for stream data linuxcommon_init_input()"); … … 222 220 malloc(sizeof(struct linux_format_data_out_t)); 223 221 224 /*assert(libtrace->format_data != NULL);*/225 222 if (!libtrace->format_data) { 226 trace_set_err_out(libtrace, TRACE_ERR_INIT_FAILED, "Unable to allocate memory linuxcommon_init_output()"); 223 trace_set_err_out(libtrace, TRACE_ERR_INIT_FAILED, "Unable to allocate memory for " 224 "format data inside linuxcommon_init_output()"); 227 225 return -1; 228 226 }
Note: See TracChangeset
for help on using the changeset viewer.