From patchwork Mon Dec 5 23:00:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 702938 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3tXgKm6PHNz9snm for ; Tue, 6 Dec 2016 10:03:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 55CBCB38C1; Tue, 6 Dec 2016 00:02:41 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S_PgjwstkR6w; Tue, 6 Dec 2016 00:02:41 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A1A3DB38CF; Tue, 6 Dec 2016 00:02:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D89FFB38AE for ; Tue, 6 Dec 2016 00:01:46 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tGCzQsmisWNU for ; Tue, 6 Dec 2016 00:01:46 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wj0-f195.google.com (mail-wj0-f195.google.com [209.85.210.195]) by theia.denx.de (Postfix) with ESMTPS id 177E5B387F for ; Tue, 6 Dec 2016 00:01:26 +0100 (CET) Received: by mail-wj0-f195.google.com with SMTP id j10so14025117wjb.3 for ; Mon, 05 Dec 2016 15:01:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z6wCuwpwg6Dia2Fh4k4OmF16OYfPBkLbvftjQP7N12Q=; b=RxSLeXn/DMwy9Iorp6hFNlBsnowbLt90vk3fhkycu8iZQq8D/6H/s3MdFo5wQpZO0i bc7FpAHrTEOexbjLV4PupBG24gAfOtzDNIyazi2iM0Vdg1cm+DA7gLdOWfsTdjXwVeLQ V09X8b8BBjiVhpSlLrrvVeRGyqVt3Y745lboDQZWzqOq7b9SpOC1oACTiaT5QQe8fqoC ZdkScThoaJqUHFHlRzzUTAOoPEReOorL8RHQfQjnV/AlSPjVVV8RjTjLBypjRp1p7xu3 CrhzBvBNr2EsJDcl+PhtVYrKPPGWR10a+0wnFrdiWlE1+1TGkG04yFMWNx9MlEVz/m2W YGXA== X-Gm-Message-State: AKaTC00hGbd9+SirJkLq3xiiGwXjByV/3D7Hr+SALyL5UDLNDRWW04Okz1InrbPQwLGw3Q== X-Received: by 10.194.59.71 with SMTP id x7mr61589684wjq.74.1480978886361; Mon, 05 Dec 2016 15:01:26 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host47-201-static.1-79-b.business.telecomitalia.it. [79.1.201.47]) by smtp.gmail.com with ESMTPSA id ke6sm22642848wjb.21.2016.12.05.15.01.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Dec 2016 15:01:25 -0800 (PST) From: Jagan Teki To: Stefano Babic Date: Tue, 6 Dec 2016 00:00:58 +0100 Message-Id: <1480978860-4351-12-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480978860-4351-1-git-send-email-jagan@openedev.com> References: <1480978860-4351-1-git-send-email-jagan@openedev.com> Cc: Matteo Lisi , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v3 11/13] i2c: mxc: Print hex instead of decimal for bus address X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jagan Teki Better to print the hex value for bus address instead of decimal, for more readbility on bus addressing. Before: ------ U-Boot> i2c dev 1 Setting bus to 1 i2c bus 1 at 35274752, no gpio pinctrl state. After: ------ U-Boot> i2c dev 1 Setting bus to 1 i2c bus 1 at 0x21a4000, no gpio pinctrl state. Cc: Simon Glass Cc: Heiko Schocher Cc: Peng Fan Cc: Michael Trimarchi Signed-off-by: Jagan Teki Acked-by: Heiko Schocher --- drivers/i2c/mxc_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 6247d33..03a5ce9 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -775,7 +775,7 @@ static int mxc_i2c_probe(struct udevice *bus) */ ret = fdt_stringlist_search(fdt, node, "pinctrl-names", "gpio"); if (ret < 0) { - dev_info(dev, "i2c bus %d at %lu, no gpio pinctrl state.\n", bus->seq, i2c_bus->base); + dev_info(dev, "i2c bus %d at 0x%2lx, no gpio pinctrl state.\n", bus->seq, i2c_bus->base); } else { ret = gpio_request_by_name_nodev(fdt, node, "scl-gpios", 0, &i2c_bus->scl_gpio,