From patchwork Tue Sep 25 14:40:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 147467 Delivered-To: patches@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp812400lji; Tue, 25 Sep 2018 07:40:34 -0700 (PDT) X-Received: by 2002:a2e:8ed1:: with SMTP id e17-v6mr1166535ljl.86.1537886434478; Tue, 25 Sep 2018 07:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537886434; cv=none; d=google.com; s=arc-20160816; b=URpHxcH1uHs0LSaoTWMPZ+XQL6d66tOYxJjD3K+IN35G7V5FL7GzZXI9c/iamBFyxM va4NmrJuTxiGrx9JMwdVAJhpedqDh7tNHb4iDhjnL/3HAsYXkHgK7pKZ5dmGXq1lwde/ Ow0l7dAy65kK62agtjEL3uxn8twK2gBKBS844MSSbw+cTW2AVwpTcYaqLSATEuVbPD80 wa3iK6SW6CsjV1/Pxn6RUPEX6dmK+mDbWImY1NSNPft4zopR/4bKMMhnniNDzm+eh2OR Je3QG6Q1+vljbZAs55IhPD7niT5DA5/fpDInJCbONy66NBFmudeNEUT+JH6XitOhxGuE wplQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z51+B07mGdgmDlGBn5B/4PkJsIHxax8VTG0YmWy/lZA=; b=mU3PclXHpUjOKmvJEqG7m5oqoncwnpevkkpH/fgnSeCuxdlLXPXBfIlJ/3UToIVt2z 3iwXIyaUsDK21ypuurAlMDNEfsMFu10tk+mTgs8oABLUi6sS5qcCI2VQ8OQ8vdABwJLf CEEkb3GpDqd5Zda7UexsJZrTc7JOW0ySNOH/L3lDnHGwE3unRnGZcmCo7RhLbBxa+7IZ uzVKM7+qf7E83GfSK93bGDJxnvzn4Fo7exa2Wga0819r9ZLSsG8etHvphKrNTWHX8I85 BL0e79+Hl2CT/JN0P9XagsHHETeQGOIXt4rHj51Z8iHYLT0Oh9JiTQ0EPM4M7+snAT+F pwAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y86FNvVX; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id p39-v6sor1100212lfg.11.2018.09.25.07.40.34 for (Google Transport Security); Tue, 25 Sep 2018 07:40:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y86FNvVX; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z51+B07mGdgmDlGBn5B/4PkJsIHxax8VTG0YmWy/lZA=; b=Y86FNvVXziHgg4XK3DbPdAZHEm/RiR5c14rXUwgGAHaAzcprR26l2/dLA0OPNag1KG 3GWzKCJY5hCkKxeY0pG5n55IFfCZ1ah/F58bkUTs20E02At5XZ7F9YvSEPDXz7D/sH0+ mbxQTrcdjf2e8SwhoWtHvMJOiTBevxAf2d4IQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z51+B07mGdgmDlGBn5B/4PkJsIHxax8VTG0YmWy/lZA=; b=B2gIppDJYxdOkM1G6a6Ij1lrwsP1DTvDg1dpSydRNIWyyQpqdMK9/F8LROe9CO/hQA wqqi7JM8Dh6JIbwpUg6FLOviNyUaIvV9sjF/lWORNSzlbm5WX++sqxgRaWT4JPt1BWJj 4jRb4Wc9HJf/G32CKLYYH937U+PjMQTinLlhuJBNMEH3uel/qT7d7n/UJuilsI7sKdBN FcOiGyVJwgxPtvH4hIpljIOrmmESi/BJNcqkeUhLDoQzc4DFBJOBN15wIzQu/HnY5XeW UBIZeLdbME7MV+3AaXp8SXLbJlkdj31V5Dc3q9b13VkjFybrP2eWp4MjRITssFIPeWTr i95w== X-Gm-Message-State: ABuFfogjNQxlKcHhGjm0xXH+26WnL6mc9GCPioYy372rm878ddxZDWq/ WIRz4//hL4aLErp+a1+KGfdZ/UhX X-Google-Smtp-Source: ACcGV63B7MOnMVycf0DFsMcjLHejNsd48uWYM2FFCGQJuB/GM0yzKHhdFEuA5pw8VSHgsCWT4l2p5w== X-Received: by 2002:a19:2102:: with SMTP id h2-v6mr995389lfh.119.1537886434046; Tue, 25 Sep 2018 07:40:34 -0700 (PDT) Return-Path: Received: from jax.urgonet (h-84-105.A175.priv.bahnhof.se. [79.136.84.105]) by smtp.gmail.com with ESMTPSA id g14-v6sm14483lja.96.2018.09.25.07.40.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 07:40:33 -0700 (PDT) From: Jens Wiklander To: u-boot@lists.denx.de Cc: Simon Glass , Igor Opaniuk , Tom Rini , Jaehoon Chung , Pierre Aubert , Albert Aribaud , Peter Griffin , Michal Simek , Jens Wiklander Subject: [PATCH v4 02/19] cmd: avb read_rb: print rb_idx in hexadecimal Date: Tue, 25 Sep 2018 16:40:06 +0200 Message-Id: <20180925144023.24555-3-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180925144023.24555-1-jens.wiklander@linaro.org> References: <20180925144023.24555-1-jens.wiklander@linaro.org> 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 --- cmd/avb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/cmd/avb.c b/cmd/avb.c index f045a0c64c4a..ca4b26d5d7b3 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;