altos: Eliminate printf format warning with long vs int
authorKeith Packard <keithp@keithp.com>
Sat, 28 Jan 2017 23:33:53 +0000 (15:33 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:16:52 +0000 (11:16 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_cmd.c

index 077d7de137f2e397560d415e4d0b6ef270ae3d7c..881f3500ab7efd4c4d5dd992eef09269a3c0d11b 100644 (file)
@@ -310,7 +310,7 @@ version(void)
 #endif
 #endif
 #if defined(AO_BOOT_APPLICATION_BASE) && defined(AO_BOOT_APPLICATION_BOUND)
-              , (uint32_t) AO_BOOT_APPLICATION_BOUND - (uint32_t) AO_BOOT_APPLICATION_BASE
+              , (unsigned) ((uint32_t) AO_BOOT_APPLICATION_BOUND - (uint32_t) AO_BOOT_APPLICATION_BASE)
 #endif
                );
        printf("software-version %s\n", ao_version);