Changeset 2193905 for lib/format_dag24.c


Ignore:
Timestamp:
11/29/18 10:12:59 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
fdf23b8
Parents:
d74ca03
Message:

Apply changes required for pull request #81

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dag24.c

    rf6f3ae5 r2193905  
    3333#include "format_erf.h"
    3434
    35 #include <assert.h>
    3635#include <errno.h>
    3736#include <fcntl.h>
     
    326325                return NULL;
    327326        size = ntohs(erfptr->rlen);
    328         /*assert( size >= dag_record_size );*/
    329327        if (size < dag_record_size) {
    330                 fprintf(stderr, "Incorrect dag record size in dag_get_record()\n");
     328                fprintf(stderr, "DAG2.4 rlen is invalid (rlen = %u, must be at least %u)\n",
     329                        size, dag_record_size);
    331330                return NULL;
    332331        }
     
    484483        } while (1);
    485484
    486 
    487         /* We only want to sleep for a very short time */
    488         /*assert(data == 0);*/
    489         if (!data != 0) {
    490                 trace_set_err(trace, TRACE_ERR_BAD_PACKET, "Unexpected data from trace event in trace_event_dag()");
    491                 return NULL;
    492         }
    493485        event.type = TRACE_EVENT_SLEEP;
    494486        event.seconds = 0.0001;
Note: See TracChangeset for help on using the changeset viewer.