From: Jens Wiklander Date: Tue, 25 Sep 2018 14:40:06 +0000 (+0200) Subject: cmd: avb read_rb: print rb_idx in hexadecimal X-Git-Tag: v2025.01-rc5-pxa1908~3408 X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=ab2d738239b0eb009a5cab792275b4c36504f595;p=u-boot.git cmd: avb read_rb: print rb_idx in hexadecimal Prior to this patch was do_avb_write_rb() reading supplied rb_idx as a hexadecimal number while do_avb_read_rb() printed the read out rb_idx as decimal number. For consistency change do_avb_read_rb() to print rb_idx as a hexadecimal number too. Reviewed-by: Simon Glass Reviewed-by: Igor Opaniuk Signed-off-by: Jens Wiklander --- diff --git a/cmd/avb.c b/cmd/avb.c index f045a0c64c..ca4b26d5d7 100644 --- a/cmd/avb.c +++ b/cmd/avb.c @@ -158,7 +158,7 @@ int do_avb_read_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (avb_ops->read_rollback_index(avb_ops, index, &rb_idx) == AVB_IO_RESULT_OK) { - printf("Rollback index: %llu\n", rb_idx); + printf("Rollback index: %llx\n", rb_idx); return CMD_RET_SUCCESS; } return CMD_RET_FAILURE;