Changeset b6ff245 for lib


Ignore:
Timestamp:
11/27/18 11:30:32 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
1ed3f1e
Parents:
0a474e3
Message:

cleanup

Location:
lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/object_cache.c

    r0a474e3 rb6ff245  
    145145        /*assert (lcs->t_mem_caches_total > 0);*/
    146146        if (lcs->t_mem_caches_total <= 0) {
    147 
     147                fprintf(stderr, "Expected lcs->t_mem_caches_total to be greater or equal to 0 in resize_memory_caches()\n");
     148                return;
    148149        }
    149150        lcs->t_mem_caches += 0x10;
     
    267268        /*assert(buffer_size);*/
    268269        if (!buffer_size) {
    269                 fprintf(stderr, "NULL bugger_size passed into libtrace_ocache_init()\n");
     270                fprintf(stderr, "NULL buffer_size passed into libtrace_ocache_init()\n");
    270271                return -1;
    271272        }
  • lib/format_dag25.c

    rf6f3ae5 rb6ff245  
    15221522        }
    15231523        if (!stat) {
    1524                 trace_set_err, TRACE_ERR_STAT, "NULL stat passed into dag_get_statistics()");
     1524                trace_set_err(libtrace, TRACE_ERR_STAT, "NULL stat passed into dag_get_statistics()");
    15251525                return;
    15261526        }
     
    15461546        }
    15471547        if (!stat) {
    1548                 trace_set_err, TRACE_ERR_STAT, "NULL stat passed into dag_get_thread_statistics()");
     1548                trace_set_err(libtrace, TRACE_ERR_STAT, "NULL stat passed into dag_get_thread_statistics()");
    15491549                return;
    15501550        }
  • lib/trace.c

    rf6f3ae5 rb6ff245  
    10091009
    10101010        if (trace_is_err(libtrace))
    1011                 /*trace_set_err(libtrace, TRACE_ERR_BAD_STATE, "Trace is in an error state trace_read_packet()");*/
    10121011                return -1;
    10131012
  • lib/trace_parallel.c

    rf6f3ae5 rb6ff245  
    25172517        res.key = key;
    25182518        res.value = value;
    2519         assert(libtrace->combiner.publish);
     2519        /*assert(libtrace->combiner.publish);*/
     2520        if (!libtrace->combiner.publish) {
     2521                fprintf(stderr, "Unable to publish result in trace_publish_result()\n");
     2522                return;
     2523        }
    25202524        libtrace->combiner.publish(libtrace, t->perpkt_num, &libtrace->combiner, &res);
    25212525        return;
Note: See TracChangeset for help on using the changeset viewer.