diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2009-10-12 09:28:56 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2009-10-12 09:28:56 +0200 |
commit | 026559068d889660ad4545ee28b6561c82c39aea (patch) | |
tree | 7e318d1698b5eac365bc512a9d0027cc70b4d11e /src/flash/flash.c | |
parent | c8d935ab7cbffb8b72e52bc39bfe85bb97dce0ac (diff) | |
parent | 2d924a59db74f12d210e26abfab629cbcfbfc014 (diff) |
Merge commit 'origin/master'
Diffstat (limited to 'src/flash/flash.c')
-rw-r--r-- | src/flash/flash.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c index 4c123f8f..d1b023c5 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -569,8 +569,8 @@ static int flash_check_sector_parameters(struct command_context_s *cmd_ctx, } if (!(last <= (num_sectors - 1))) { - command_print(cmd_ctx, "ERROR: " - "last sector must be <= %d", num_sectors - 1); + command_print(cmd_ctx, "ERROR: last sector must be <= %d", + (int) num_sectors - 1); return ERROR_FAIL; } @@ -616,7 +616,8 @@ static int handle_flash_erase_command(struct command_context_s *cmd_ctx, return retval; command_print(cmd_ctx, "erased sectors %i through %i " "on flash bank %i in %s", - first, last, bank_nr, duration_text); + (int) first, (int) last, (int) bank_nr, + duration_text); free(duration_text); } } @@ -667,8 +668,8 @@ static int handle_flash_protect_command(struct command_context_s *cmd_ctx, if (retval == ERROR_OK) { command_print(cmd_ctx, "%s protection for sectors %i " "through %i on flash bank %i", - (set) ? "set" : "cleared", first, - last, bank_nr); + (set) ? "set" : "cleared", (int) first, + (int) last, (int) bank_nr); } } else |