Ignore:
Timestamp:
11/29/18 10:12:59 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
fdf23b8
Parents:
d74ca03
Message:

Apply changes required for pull request #81

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux_common.c

    r2725318 r2193905  
    4040#include <unistd.h>
    4141#include <string.h>
    42 #include <assert.h>
    4342
    4443#ifdef HAVE_INTTYPES_H
     
    186185                malloc(sizeof(struct linux_format_data_t));
    187186
    188         /*assert(libtrace->format_data != NULL);*/
    189187        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()");
    191190                return -1;
    192191        }
     
    195194                libtrace_list_init(sizeof(stream_data));
    196195
    197         /*assert(FORMAT_DATA->per_stream != NULL);*/
    198196        if (!FORMAT_DATA->per_stream) {
    199197                trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Unable to create list for stream data linuxcommon_init_input()");
     
    222220                malloc(sizeof(struct linux_format_data_out_t));
    223221
    224         /*assert(libtrace->format_data != NULL);*/
    225222        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()");
    227225                return -1;
    228226        }
Note: See TracChangeset for help on using the changeset viewer.