change log for rtems-testing (2010-10-04)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Oct 4 23:10:03 UTC 2010


 *joel*:
2010-10-04	Joel Sherrill <joel.sherrill at oarcorp.com>

	* qemu-dump-trace.c: Fix issues identified by clang-analyzer.

M   1.14  covoar/ChangeLog
M    1.2  covoar/qemu-dump-trace.c

diff -u rtems-testing/covoar/ChangeLog:1.13 rtems-testing/covoar/ChangeLog:1.14
--- rtems-testing/covoar/ChangeLog:1.13	Mon Jun 21 07:36:36 2010
+++ rtems-testing/covoar/ChangeLog	Mon Oct  4 11:59:43 2010
@@ -1,3 +1,7 @@
+2010-10-04	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* qemu-dump-trace.c: Fix issues identified by clang-analyzer.
+
 2010-06-21	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* mkExplanation: Default value for verbose.

diff -u rtems-testing/covoar/qemu-dump-trace.c:1.1 rtems-testing/covoar/qemu-dump-trace.c:1.2
--- rtems-testing/covoar/qemu-dump-trace.c:1.1	Mon May 24 15:07:09 2010
+++ rtems-testing/covoar/qemu-dump-trace.c	Mon Oct  4 11:59:43 2010
@@ -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 @@
 
   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 );



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20101004/265ee2c8/attachment.html>


More information about the vc mailing list