summaryrefslogtreecommitdiffstats
path: root/covoar
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-10-04 16:59:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-10-04 16:59:43 +0000
commit285f70a45517c48a278b4bbdb0ae52c80efcf2e1 (patch)
tree71a4309d190dda7e745d87ccbf738c0f67623f02 /covoar
parent2010-08-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-testing-285f70a45517c48a278b4bbdb0ae52c80efcf2e1.tar.bz2
2010-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* qemu-dump-trace.c: Fix issues identified by clang-analyzer.
Diffstat (limited to 'covoar')
-rw-r--r--covoar/ChangeLog4
-rw-r--r--covoar/qemu-dump-trace.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/covoar/ChangeLog b/covoar/ChangeLog
index ac59915..62fe9f8 100644
--- a/covoar/ChangeLog
+++ b/covoar/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * qemu-dump-trace.c: Fix issues identified by clang-analyzer.
+
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* mkExplanation: Default value for verbose.
diff --git a/covoar/qemu-dump-trace.c b/covoar/qemu-dump-trace.c
index c000928..ac2a19a 100644
--- a/covoar/qemu-dump-trace.c
+++ b/covoar/qemu-dump-trace.c
@@ -1,9 +1,8 @@
#include <stdint.h>
#include <stdio.h>
-
-/* XXX this isn't right */
-typedef uint32_t target_ulong;
+#include <errno.h>
+#include <string.h>
#include "qemu-traces.h"
@@ -26,7 +25,8 @@ int dump_file(
bytes = fread( &header, sizeof(struct trace_header), 1, trace );
if ( bytes != 1 ) {
- fprintf( stderr, "error reading header of %s (%d)\n", name );
+ fprintf( stderr, "error reading header of %s (%s)\n",
+ name, strerror(errno) );
return -1;
}
printf( "magic = %s\n", header.magic );