Changeset 2c457ec for lib/libtrace.h.in


Ignore:
Timestamp:
11/16/17 10:37:56 (3 years ago)
Author:
Robert A Zeh <razeh@…>
Branches:
cachetimestamps, develop, dpdk-ndag, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
9726d0e
Parents:
be32cc7
git-author:
Robert A Zeh <robert.a.zeh@…> (11/16/17 10:36:16)
git-committer:
Robert A Zeh <razeh@…> (11/16/17 10:37:56)
Message:

Add TRACE_ERR_WANDIO_FAILED for wandio error reporting.

Passing an errcode of 0 to trace_set_err triggers the assertion at
format_helper.c:290, making the error unrecoverable for the calling
code. This happens when the wandio layer encounters an error while
errno is still 0 (for example, an incomplete pcap packet).

To make the error recoverable, pass in TRACE_ERR_WANDIO_FAILED instead
of errno.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    rea75ec2 r2c457ec  
    305305        TRACE_ERR_RT_FAILURE    = -10,
    306306        /** Compression format unsupported */
    307         TRACE_ERR_UNSUPPORTED_COMPRESS  = -11
     307        TRACE_ERR_UNSUPPORTED_COMPRESS  = -11,
     308        /** Wandio has returned an error */
     309        TRACE_ERR_WANDIO_FAILED = -12 
    308310};
    309311
Note: See TracChangeset for help on using the changeset viewer.