From patchwork Wed Dec 11 11:18:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1207603 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="hyAdPpwJ"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47XvZF3KxCz9sPc for ; Wed, 11 Dec 2019 22:18:41 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E1C15814D6; Wed, 11 Dec 2019 12:18:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="hyAdPpwJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 47FAC814D8; Wed, 11 Dec 2019 12:18:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FORGED_SPF_HELO, SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02on0700.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe07::700]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3B097814C1 for ; Wed, 11 Dec 2019 12:18:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bSeUzMui9YH9goRuvw8J/3vRvMWqG80l0bcw9307BvJ0c6shuuqMpQxKF2WA95pFVWA7dipYtF18I2liDA3HvIRZRxi9eFO2R4OyoINPmRXstNrn75uASglCMi0/v/C4pG3ivVjHMeYlmtmHTZYzVJdD2xA9OgE3SOSB5V+/PpsZKDk60qEALf4FFZo50bBzw9O2UuEuCnre8CJsrvYxKaTzQBYy5qNHAL68OHs1eaxKgLAriYL8GaelW6WhhR57CLXWmwiGqaVDOfCk2LBsKe7iyKH0Lb+RV/4JO8lS3ZtVZxMyN34bpf8rQJjRIFfhghB4Fa0DnrkvlkNyoQusaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fas9VZ6Int5YXv5GJeiTZDGZpRbJoAXIp9xMsOrCc/o=; b=lUazGfvkK9zvuJCnq0Bdm5MPZWmQaZ4oFnsLf4UBVuvs7Xc+h8g2l5fWiajCzB3dx8rA3BKNdBUKwB7lsYR+WuCOsVifc1BrW3ddXKZb9Uzg5dEDCrYYmJrnEv4KALV0j+DjfuZ8KtO7QdevsK137OUT8ptD23HfbXBrZEFaH69xRjbl9DnwvpCn5rYnxO0BHfCtGStKw/xONF6tD4h1ZMvsyTelNwaDbx7FKsnNPgnOVwfRcVhDEkKeyUBNEx8MY1FnBYb1NShcGoOOeexIGDOqGIyIOnwuYTvIBpsYJjT0g5YmFJtM/NLG80xfkulR7x1jsWhjADNTVZlCzZLFEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fas9VZ6Int5YXv5GJeiTZDGZpRbJoAXIp9xMsOrCc/o=; b=hyAdPpwJvW4ytKZUeKq9tTTo2+6ZnQJRNgPC4tEFETdMCWFsqv0ZLGmAQ80Wag5ZqbO8CwKAnBzWbcNO2ZOF6/jE6pIPKDOQSx/TSLII4La5zCZqdU31sshSBRk5rDWyrO1oCoZ195Jo6Ddbfgjou0AkzV71bvg9hCY2zYMKCgY= Received: from DB6PR1001MB1398.EURPRD10.PROD.OUTLOOK.COM (10.171.78.144) by DB6PR1001MB1159.EURPRD10.PROD.OUTLOOK.COM (10.168.78.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.13; Wed, 11 Dec 2019 11:18:29 +0000 Received: from DB6PR1001MB1398.EURPRD10.PROD.OUTLOOK.COM ([fe80::81b6:5f71:1eb1:c56a]) by DB6PR1001MB1398.EURPRD10.PROD.OUTLOOK.COM ([fe80::81b6:5f71:1eb1:c56a%12]) with mapi id 15.20.2516.018; Wed, 11 Dec 2019 11:18:29 +0000 From: Rasmus Villemoes To: "u-boot@lists.denx.de" Subject: [PATCH] cmd/eeprom.c: prepend 0x to hex numbers in output message format Thread-Topic: [PATCH] cmd/eeprom.c: prepend 0x to hex numbers in output message format Thread-Index: AQHVsBS3zHE1AehuekSdIcqxokltog== Date: Wed, 11 Dec 2019 11:18:29 +0000 Message-ID: <20191211111817.1109-1-rasmus.villemoes@prevas.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR06CA0127.eurprd06.prod.outlook.com (2603:10a6:7:16::14) To DB6PR1001MB1398.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b6::16) x-mailer: git-send-email 2.23.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasmus.villemoes@prevas.dk; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [81.216.59.226] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 99090af0-bf10-45b8-1cd7-08d77e2bd96a x-ms-traffictypediagnostic: DB6PR1001MB1159: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:172; x-forefront-prvs: 024847EE92 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(366004)(396003)(39850400004)(376002)(346002)(199004)(189003)(107886003)(86362001)(4326008)(26005)(186003)(6916009)(478600001)(6506007)(6486002)(6512007)(52116002)(2906002)(36756003)(81156014)(8936002)(316002)(8676002)(8976002)(54906003)(66946007)(4744005)(66476007)(64756008)(66446008)(2616005)(1076003)(44832011)(71200400001)(66556008)(5660300002)(81166006); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR1001MB1159; H:DB6PR1001MB1398.EURPRD10.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: prevas.dk does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VnpCA3U+xxHd2mVUQcSqJAhmQ4grGGanbj17/7b9RZI1vS+AfBFEvsBcR8QNG3MsMYjUVjUZ0aFl1wMmfeecD1TAw5qzB+dabmxpumuZjZrxHgYGwEsiIlnKjrTVK3ueOd1OoJ6nbzPo88dHgDgmYcf5GPNH7Mqn9s7StbLWBLG5ghdBpIGZL9eM/uEAfn0mQir8UvfBYGmTvcHqIKYpUv1RLckAeSvyjsdMUVX4kEiv4FZUy3Jnv/PO9+dsuGuScE/5CCZb4hM94+OPrjNillolwuY2tw/dyvqcggf4IMQR+XoVEbWBYvCfz68UA/9192U8ynIePNq7HgZ694SN8lST0XBTjRyK1dDqfWMoecLurKFGXNpZxtPkZlgnwQcyULDQDBhitFC9Rr9CAE9ab3eHOQrA4DKXhikKH880j33/X57xdv4qeEmsNkfg09mS MIME-Version: 1.0 X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 99090af0-bf10-45b8-1cd7-08d77e2bd96a X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2019 11:18:29.4876 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tfSeGoVOabiQ2fcN5g4A2nmpiB9Dxg2gh3SrieyRD+Eevc66aD90gvBggWiBRHlPwst61hhfGZWQQ3J84Yh2bBIlY91bQrp6M5Z0p70cGm4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR1001MB1159 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?iso-8859-1?q?Klaus_Henning_S=F8rensen?= Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean From: "Klaus H. Sorensen" If the numbers do not happen to contain any digits from [a-f], it's not clear that they are base 16. Signed-off-by: Klaus H. Sorensen Signed-off-by: Rasmus Villemoes Reviewed-by: Lukasz Majewski Reviewed-by: Heiko Schocher --- cmd/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 19953df082..23d9a21ab6 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -307,7 +307,7 @@ static int eeprom_execute_command(enum eeprom_action action, int i2c_bus, { int rcode = 0; const char *const fmt = - "\nEEPROM @0x%lX %s: addr %08lx off %04lx count %ld ... "; + "\nEEPROM @0x%lX %s: addr 0x%08lx off 0x%04lx count %ld ... "; #ifdef CONFIG_CMD_EEPROM_LAYOUT struct eeprom_layout layout; #endif