From patchwork Mon Aug 13 15:53:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 144025 Delivered-To: patches@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3246936ljj; Mon, 13 Aug 2018 08:54:07 -0700 (PDT) X-Received: by 2002:a2e:9c4d:: with SMTP id t13-v6mr11986125ljj.153.1534175647524; Mon, 13 Aug 2018 08:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534175647; cv=none; d=google.com; s=arc-20160816; b=dyzCam1BnLIRUH4LXDlF0Ngbr2Yy2+c5Z6PiV3uHudR0epQHvD9AZLouxvxYfbrWQR id880Fp7bm9FNcWGPiS923LWW2oLbCog2DSrleOrbgPVeOUpWPHXFUwukahbjSg7O1MJ TPJ8Dh4dTdU/GSnTWh/ubrNF6dBcyLa9hEy8m0gTANmrFelez1bMl56AKcddasABo2L1 KpYi3E3PjTYOojM8E9V8S1I3KRn7KIy+wez4X4iFRwz9StgLZAxNL0PFztZ3X2tpzoD/ LsffHXe550N2D+jptaw5gM1LpkqrePAzOa9+1cX4eYo5MuHlwrFhCK1/jYOLEL9RsNGt rMmA== 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=VHUoHiOMjJRkvCjslp1jUk11Tq5ObYBkQQsyebiz+5c=; b=TAh2gf1ngIIeFhAVY1B6y7ZfTRiGidSPBZsrKW/58+ILstU6fou0b4i4pAeMzIVbxv A6C0lq7FlHagnq8TSctUE/lY5jdeNBeukz3vWjJzumrr0HDHwT6jnJRcWyZ8YB0bAITV xVSt/w15NB6tQK5HpQyCCkJfQv8tl+y93z5N73kHCmrrCc+cGK/6rOkB1pINiTvx/T5x HyarYI8Qnl+gfRbcEhzAhcHVCBDCr/WvKktHZhB4leQEo3vhSdTzGx4Wr7cyQPZXHCg5 Cee97LpzrShmN8J+WNjKMapPbUQGh2xXNdtUlSFsQvLqEjs2ssI1xsDBTtHP4Otk3Hv/ PfAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jb089Vks; 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 q73-v6sor1798925lfb.49.2018.08.13.08.54.07 for (Google Transport Security); Mon, 13 Aug 2018 08:54:07 -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=Jb089Vks; 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=VHUoHiOMjJRkvCjslp1jUk11Tq5ObYBkQQsyebiz+5c=; b=Jb089VkszIKZBdKHKpEm17jJp/30LTugiFZcE3XLWyjhJW5aBXkfoMJXOKzcbxVrsF cisUReWV3qW7nVKHRQxTVLK3jowZgUbFsXjd57Ov8RX0NO+8zJ8NlQAQUA2jZgZaP0Fw sTL0ZEMoKbtWc1y36XOy7gznhnP06JOhqjWtM= 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=VHUoHiOMjJRkvCjslp1jUk11Tq5ObYBkQQsyebiz+5c=; b=qiSxSzG86CkgOJGSr4lIAbWtgU20/QfjbtBxcKJB/o56uqRTHY9sdR+bF1Xm2B2wli aS0HIheetmCWjqP1SylFswqE+QZz19AD/SGlcmj21mHnJsOD83NvJflvuRH2W7Ptbr29 KJsBwrJCPA5g0TfMiMbKG5D7jMAL4/Q1B9684glyFu4zdktsYI2dJorV4VJtEPiEsvxQ 513906+i3wRcVM9MKoe2kq24OCh3KFK6B2n5Fa8S5FMPXQ8O/+oYzSK4hgipbR4CS9ng y7ifdkWKu7Qr9oxxFsGCN46k2DetB9YyO79BTv2orWIvHqMWgMWGaHBEGTSRqWeo58PD 9vyw== X-Gm-Message-State: AOUpUlHLHf10HiBYiaQzoDPCpV1pqMsM6EOjBg1PD60Gv42f6X2elIt1 3z4yMe+3zOTZX4g0zjS+oqfb/YdQ X-Google-Smtp-Source: AA+uWPx3MEx10WmJ8+bJET9/g7I6egaKwnmSEE2YGcUHJaWmxeRDdoJCOLiI+96bakd27E+AeC4Zwg== X-Received: by 2002:a19:4b90:: with SMTP id y138-v6mr11021055lfa.118.1534175647342; Mon, 13 Aug 2018 08:54:07 -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 q12-v6sm2791624lfc.26.2018.08.13.08.54.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 08:54:06 -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 02/10] cmd: avb read_rb: print rb_idx in hexadecimal Date: Mon, 13 Aug 2018 17:53:39 +0200 Message-Id: <20180813155347.13844-3-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180813155347.13844-1-jens.wiklander@linaro.org> References: <20180813155347.13844-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 hexadeciaml number too. Signed-off-by: Jens Wiklander --- cmd/avb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Igor Opaniuk 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;