From patchwork Mon Sep 3 14:46:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 145799 Delivered-To: patches@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2575393ljw; Mon, 3 Sep 2018 07:47:21 -0700 (PDT) X-Received: by 2002:a2e:9113:: with SMTP id m19-v6mr18557178ljg.23.1535986041756; Mon, 03 Sep 2018 07:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535986041; cv=none; d=google.com; s=arc-20160816; b=i4KOXyo9isaYMAwbRW9XcfWsCuAimoqU4lV0N1QTcZk+ztdN5DFaeI5poM0bO+LYGw tJZZjUSs+/wgWwyKf2c6f21HXeoQ2PqPz3PqDwZDB8M+XIVEg4IN0F8f56MEc1OX+wC0 tx5iieE6GrbxZhmLedRmRsThK+oEVqTQMW4F3A5frsrjFladYRhX+nYveZ3bhY6Y++wK SJ5IdIKt5b+r//ZU7K7E088YFqJB9/+BYDhJCihHo5XpmTaYJ4XcM3+3qhG5o0KRho9b cERTlZ6GCxb5dxAGoyWnzvk/VasBIjB+CEhcX2wGylXcS+jB4IiVwfVSDBWXb1d+L6u3 vQoA== 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:arc-authentication-results; bh=z51+B07mGdgmDlGBn5B/4PkJsIHxax8VTG0YmWy/lZA=; b=uNqVUcct8NsWUyzjmll6pxQE7PhM6i+OkWx5kVXA5tJBc8FtqD44nJa0VVyC5xTJhP 9xMSnvcvNNZiQZsLaV7Nslw9YMZXFA8JbY1beW6+qEdl9o1M/Jgq95n6+K2BzEpakvrJ O0GCd9I0weZ6LQ6pP250KWZGZjNdQcOU2tVx36SsPPzMY5JMEaorvD2Joc5s3xJzctCi S6gnkR1zdALrA76YGgvXFg2XF2NWAYfYa1Y9HzojMsJe+ZZU95ESG6HWFNGUhfEJ37ES ryrcpT5yeuPqbLCeBnfgnq6XBYDz4h0idOceJatxnsl6w0r5PCGtj6lzySNWkmM6yiOc frtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g1K1fS4i; 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 d2-v6sor5515651lfg.14.2018.09.03.07.47.21 for (Google Transport Security); Mon, 03 Sep 2018 07:47:21 -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=g1K1fS4i; 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=g1K1fS4i4Ygp5em2TqNDcwoKk/MepyDfGXJJ0Kq0KajqqRus23wMUEDlhp8+wiR3B4 jJF1rpm237Omt3W5ZKzlfzYozC6f9WDdCivWN7GQiuqF03mf3bbeKPZKtUXSyMIqqph3 4iBtP4H6oLpBzc3X8QHq1wPTpNWrIKDCkEeGM= 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=ROL7BuGG0AkSWwtq/ivwtfmf31i33QDHupGXoljgNCpiDNpBw13xlUBO79jAbXQfjI tEC/Kf1ytjBElqkOAE54aeXS/gx+09fwlOKsUjnRH6DVN3PQTrV2i1CW57QcCqRA8eic sme451462mbeBNo+nUpzzWWkJJjaB9LMVZ8Xh1JIt3/MyOH+rjRzcKprue3PDufGMtKf mG71V5QHYuc0AuVPNeZE+f4FvN0S0BAXvCxNSq+vYWIrkFm8QcrmpLaSBdj+gYzbQ3EK Ach3Y/w3tTk7+ArFm03vXzS4E6akvR6AxYvMfyQQ1DNG3RavE64Lz+/Tb7ananCxx8Fb 1WIQ== X-Gm-Message-State: APzg51BIudtn34rRTgXLXzV+h2FZrE8z8MITsN82lsGw9zNo2juLo9CA pYYC9zKUm+1t0ejclN2eQn9F3sQf X-Google-Smtp-Source: ANB0VdaLK3aDya7Im6++b03EWMRkcWRoYRSXJ1V34AdjHTszI15U/Got/7+4/wcK598+Nlq7PyC+1w== X-Received: by 2002:a19:cc08:: with SMTP id c8-v6mr18986918lfg.145.1535986041592; Mon, 03 Sep 2018 07:47:21 -0700 (PDT) Return-Path: Received: from jax.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id w18-v6sm3343431ljd.73.2018.09.03.07.47.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 07:47:20 -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 v3 02/20] cmd: avb read_rb: print rb_idx in hexadecimal Date: Mon, 3 Sep 2018 16:46:53 +0200 Message-Id: <20180903144711.31585-3-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903144711.31585-1-jens.wiklander@linaro.org> References: <20180903144711.31585-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;