diff --git a/board/purple/flash.c b/board/purple/flash.c
index 7522580808d9e929b0a24d2a71120dba65b05524..1baae35eb886a291a40b7c6e0db1f23cdfe60b8a 100644
--- a/board/purple/flash.c
+++ b/board/purple/flash.c
@@ -299,7 +299,7 @@ void flash_print_info (flash_info_t *info)
 	int i;
 	uchar *boottype;
 	uchar *bootletter;
-	uchar *fmt;
+	char *fmt;
 	uchar botbootletter[] = "B";
 	uchar topbootletter[] = "T";
 	uchar botboottype[] = "bottom boot sector";