]> git.sur5r.net Git - openocd/commitdiff
update w/missing eCos definitions after latest round of compiler formatting warnings...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 23 Jun 2009 07:38:01 +0000 (07:38 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 23 Jun 2009 07:38:01 +0000 (07:38 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2356 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/types.h

index b32850ccc41a7bd253c24b4aa6dbe231b805855c..a5c2624a1a3eb3a553e8db00664e369733d640b1 100644 (file)
@@ -124,8 +124,18 @@ static inline void h_u16_to_be(uint8_t* buf, int val)
 }
 
 #ifdef __ECOS
+/* eCos plain lacks these definition... A series of upstream patches
+ * could probably repair it, but it seems like too much work to be
+ * worth it.
+ */
+
+
+#define PRIx32 "x"
+#define PRId32 "d"
+#define SCNx32 "x"
+#define PRIi32 "i"
+#define PRIu32 "u"
 
-/* eCos plain lacks this definition... */
 typedef CYG_ADDRWORD intptr_t;
 typedef int64_t intmax_t;
 typedef uint64_t uintmax_t;