MinGW build fixes
Print "ssize_t" as "%ld" (+ cast to long) not as "%zu". Official MinGW (gcc 3.4.5) doesn't understand "z" flag. Signed-off-by: Freddie Chopin <freddie_chopin@op.pl> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
committed by
David Brownell
parent
37cc6c495f
commit
6b1eeb92fe
@@ -409,8 +409,8 @@ COMMAND_HANDLER(handle_nand_dump_command)
|
||||
|
||||
if (nand_fileio_finish(&s) == ERROR_OK)
|
||||
{
|
||||
command_print(CMD_CTX, "dumped %zu bytes in %fs (%0.3f kb/s)",
|
||||
s.fileio.size, duration_elapsed(&s.bench),
|
||||
command_print(CMD_CTX, "dumped %ld bytes in %fs (%0.3f kb/s)",
|
||||
(long)s.fileio.size, duration_elapsed(&s.bench),
|
||||
duration_kbps(&s.bench, s.fileio.size));
|
||||
}
|
||||
return ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user