Changeset 285f70a in rtems-testing


Ignore:
Timestamp:
Oct 4, 2010, 4:59:43 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
36c53fb
Parents:
6fe0974
Message:

2010-10-04 Joel Sherrill <joel.sherrill@…>

  • qemu-dump-trace.c: Fix issues identified by clang-analyzer.
Location:
covoar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • covoar/ChangeLog

    r6fe0974 r285f70a  
     12010-10-04      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * qemu-dump-trace.c: Fix issues identified by clang-analyzer.
     4
    152010-06-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • covoar/qemu-dump-trace.c

    r6fe0974 r285f70a  
    22#include <stdint.h>
    33#include <stdio.h>
    4 
    5 /* XXX this isn't right */
    6 typedef uint32_t target_ulong;
     4#include <errno.h>
     5#include <string.h>
    76
    87#include "qemu-traces.h"
     
    2726  bytes = fread( &header, sizeof(struct trace_header), 1, trace );
    2827  if ( bytes != 1 ) {
    29     fprintf( stderr, "error reading header of %s (%d)\n", name );
     28    fprintf( stderr, "error reading header of %s (%s)\n",
     29             name, strerror(errno) );
    3030    return -1;
    3131  }
Note: See TracChangeset for help on using the changeset viewer.