From patchwork Thu Aug 23 10:43:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 144908 Delivered-To: patches@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp30519ljw; Thu, 23 Aug 2018 03:43:43 -0700 (PDT) X-Received: by 2002:a19:4a09:: with SMTP id x9-v6mr20277961lfa.80.1535021023279; Thu, 23 Aug 2018 03:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535021023; cv=none; d=google.com; s=arc-20160816; b=vATA9/PFwJBQuKSZZyq0uWJO5rmTG3X+owhjzEg98gF9w9VZSItyPVM2Js9Nj9J5zC muBURx9A/lKUX7tfAd9MwmtQd7N58g52qoaZaR0TR90yPxj9tk37/8p+xXdmzHrmJsRD vMimvJZpJoWKmzZBE0pkFERzuXC62Woq4ujF1FgYXl3RF50TI4npXK8KpUVGKK6QFZ4Q /5bp8+/A4tangfaaZaF6jDPUMHAMbVbeFuEPDtMLAvHQGYJElFd0E06QTMZS2jUSTnsl 0GTv9ZipC+dc3OtQni9bsefqHULmXuZrg8pJqQk62wGbQ85WwiYwmWXwQloofmZ+YFQN 4RgA== 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=XfodkM3Y8KW5AvpoVmGhcFIvKuVN259iIcsaTHbJFu0=; b=h7JO+l2U2GN5HkQ/NczeigkjMPMbvwaRkAh9nnpQNjLmhPjibMASQ4J1s4GoLQIEnD 6WjL43pG/Wg8RBMb38kdNVCE+0a+4vUInBt/0J5UY21Fsn4Iob1XrjMHgEwrUC7OZHaZ PPCSik9Z/nUZDJv31i6xwkHXaI+hZ1Jln5Ipw/xZdmJHXD9ThIRxh/Vz+qmtI7hTrOYO EHM9rg7nuRYyg+F22qnKy3THjUeWzQXyNDHcQGDlx2tCMmFN/M0oj+g9dPin4tAN2hUS g47zp6ClFMF5kfWDxUZ0IupxBjkR2FulJwL67BJr3mcTEJT3hlM7m5wNWmh3HNA93O28 VgOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Br9sR+ub; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 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-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 17-v6sor904978ljs.22.2018.08.23.03.43.43 for (Google Transport Security); Thu, 23 Aug 2018 03:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Br9sR+ub; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 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=XfodkM3Y8KW5AvpoVmGhcFIvKuVN259iIcsaTHbJFu0=; b=Br9sR+ubVCHVxR3CRwuE6/PEXiVYb90yYFdVvG3o4JBmtIlkyw1IZrYSDUn6sMslXi VwYBk2kDPRdebUVQ1S5ZPzD/1RxBNmY45wxmpeTQ4SnEcBvzXn1imFS20LE41b1ZrgYl NrlrGTasM3Gz/7HDZFTxz8VQj9QY7WPUCPr4o= 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=XfodkM3Y8KW5AvpoVmGhcFIvKuVN259iIcsaTHbJFu0=; b=nPyFWhd/+uHw5WTCAjIVyfSwmDSRtd2L4vSFVvaOQ+a3nZK1vR7DQjP2GpFP99SUxR 7xR6XpJ4T6XLTFKQOGKfMrGOEnaKeEGGLVk2o56XZaMvGG39aAMxmvvBL6paH3oumYO6 9TFPsNjAF1dirpewE5Y3pQAWagHnx0ti2MFD8tXYfBua7XRXjpQZF4zITTWfXEpz8aGR W4cofEuvtZk5rOSJ0VHZlepx0GB2CBLnBn0Mz2L4q2rVnsbOfQ1wHbu7D61vO5nPythF tUWkdWeV2C7kXXTe8V1+0/WHIegrchGvjVFyczi+PGQgAsp7f9kP5Onv4fiAcTTLBTFE Kf8Q== X-Gm-Message-State: AOUpUlG/NKcVuFVG1t1kpa1PL8GRB5Zm8L3CXTwUbtHUKX2j1s+rr6mm JAMujZCypYw5Uub63hJKG9p3ud5q X-Google-Smtp-Source: AA+uWPy2AKPanOgnKrXqi1Zgqi/2fO1Tz4fyWF7OheVFoYDkvaA7vFuootvu1l7u0ECGtPUSNDnSCA== X-Received: by 2002:a2e:5f5b:: with SMTP id t88-v6mr42142125ljb.140.1535021023111; Thu, 23 Aug 2018 03:43:43 -0700 (PDT) Return-Path: Received: from jax.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id y5-v6sm679771ljj.75.2018.08.23.03.43.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 03:43:42 -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 v2 02/15] cmd: avb read_rb: print rb_idx in hexadecimal Date: Thu, 23 Aug 2018 12:43:21 +0200 Message-Id: <20180823104334.16083-3-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180823104334.16083-1-jens.wiklander@linaro.org> References: <20180823104334.16083-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: Igor Opaniuk Signed-off-by: Jens Wiklander --- cmd/avb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Simon Glass 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;