Changeset 91db67b for lib/trace.c


Ignore:
Timestamp:
04/24/06 18:42:43 (16 years ago)
Author:
Perry Lorier <perry@…>
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:
cee9e34
Parents:
97c8d58
Message:

Clean up the various usages of TRACE_ERR_*, add TRACE_ERR_UNSUPPORTED and
shuffle which error was returned where. Document their new usages.

Closes: #13

Also, fix the 802.1q definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    re4e95499 r91db67b  
    343343                }
    344344        } else {
    345                 trace_set_err(libtrace,TRACE_ERR_NO_INIT,
     345                trace_set_err(libtrace,TRACE_ERR_UNSUPPORTED,
    346346                                "Format does not support input (%s)",scan);
    347347                return libtrace;
     
    471471                }
    472472        } else {
    473                 trace_set_err_out(libtrace,TRACE_ERR_NO_INIT_OUT,
     473                trace_set_err_out(libtrace,TRACE_ERR_UNSUPPORTED,
    474474                                "Format does not support writing (%s)",scan);
    475475                return libtrace;
     
    682682                } while(1);
    683683        }
    684         trace_set_err(libtrace,TRACE_ERR_BAD_FORMAT,"This format does not support reading packets\n");
     684        trace_set_err(libtrace,TRACE_ERR_UNSUPPORTED,"This format does not support reading packets\n");
    685685        packet->size=-1;
    686686        return -1;
Note: See TracChangeset for help on using the changeset viewer.