Changeset ca1272c


Ignore:
Timestamp:
10/03/07 13:27:38 (13 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:
7daeab9
Parents:
503a58c
Message:

Better diagnostics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r3a14f3b rca1272c  
    647647        libtrace_packet_t *dest =
    648648                (libtrace_packet_t *)malloc(sizeof(libtrace_packet_t));
     649        if (!dest) {
     650                printf("out of memory constructing packet\n");
     651                abort();
     652        }
    649653        dest->trace=packet->trace;
    650654        dest->buffer=malloc(65536);
     655        if (!dest->buffer) {
     656                printf("out of memory allocating buffer memory\n");
     657                abort();
     658        }
    651659        dest->header=dest->buffer;
    652660        dest->payload=(void*)
Note: See TracChangeset for help on using the changeset viewer.