Changeset 3d4d52d for lib/trace.c


Ignore:
Timestamp:
02/17/06 14:49:14 (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:
65a5900
Parents:
f03fc17
Message:

Abstract away opening up traces into a single trace_open_trace that's more
simple and reliable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rf03fc17 r3d4d52d  
    5151#include <sys/stat.h>
    5252#include <sys/types.h>
     53#include <stdarg.h>
    5354
    5455#ifdef HAVE_LIMITS_H
     
    15111512 * @param msg a plaintext error message
    15121513 */
    1513 void trace_set_error(int errcode,const char *msg,...)
     1514void trace_set_err(int errcode,const char *msg,...)
    15141515{
    15151516        va_list va;
    1516         va_start(msg,va);
     1517        va_start(va,msg);
    15171518        trace_err.err_num=errcode;
    15181519        vsnprintf(trace_err.problem,sizeof(trace_err.problem),msg,va);
    1519         va_end();
    1520 }
     1520        va_end(va);
     1521}
Note: See TracChangeset for help on using the changeset viewer.