flash: add error message if image is too big for flash
[fw/openocd] / src / helper / types.h
index 96a923b81fee6a0f858575a79b8d5e7b145bbe35..1010dcd967b6365f198ce9738ac431b6fcc11b8d 100644 (file)
@@ -85,8 +85,8 @@ typedef bool _Bool;
 
 /**
  * Rounds @c m up to the nearest multiple of @c n using division.
- * @params m The value to round up to @c n.
- * @params n Round @c m up to a multiple of this number.
+ * @param m The value to round up to @c n.
+ * @param n Round @c m up to a multiple of this number.
  * @returns The rounded integer value.
  */
 #define DIV_ROUND_UP(m, n)     (((m) + (n) - 1) / (n))
@@ -172,6 +172,7 @@ static inline void h_u16_to_be(uint8_t* buf, int val)
 #define SCNx32 "x"
 #define PRIi32 "i"
 #define PRIu32 "u"
+#define PRId8 PRId32
 
 typedef CYG_ADDRWORD intptr_t;
 typedef int64_t intmax_t;