jtag: Use 'unsigned int' data type
This patch modifies as little code as possible in order to simplify the review. Data types that are affected by these changes will be addresses in following patches. While at it, apply coding style fixes if these are not too extensive. Change-Id: I364467b88f193f8387623a19e6994ef77899d117 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8414 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
7d56407ba7
commit
2b6d63a44d
@@ -212,8 +212,8 @@ COMMAND_HANDLER(handle_jtag_flush_count)
|
||||
if (CMD_ARGC != 0)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
|
||||
int count = jtag_get_flush_queue_count();
|
||||
command_print_sameline(CMD, "%d", count);
|
||||
const unsigned int count = jtag_get_flush_queue_count();
|
||||
command_print_sameline(CMD, "%u", count);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user