From patchwork Fri Oct 28 13:57:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 688412 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 3t553n5rLgz9t0H for ; Sat, 29 Oct 2016 00:59:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AC47FA7574; Fri, 28 Oct 2016 15:59:19 +0200 (CEST) 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 cEUZzE2IskJ3; Fri, 28 Oct 2016 15:59:19 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2FAADA7560; Fri, 28 Oct 2016 15:59:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 08A7EA75CC for ; Fri, 28 Oct 2016 15:59:05 +0200 (CEST) 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 Sm4JOcWmONpL for ; Fri, 28 Oct 2016 15:59:04 +0200 (CEST) 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-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by theia.denx.de (Postfix) with ESMTPS id 14A0FA75C9 for ; Fri, 28 Oct 2016 15:58:50 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id u84so1372974pfj.1 for ; Fri, 28 Oct 2016 06:58:50 -0700 (PDT) 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=lRL9/Bfjq4YoGzxEUBkLVrDMZg9s8BRGMA29pi/+aJg=; b=NNfkpz7pUIaKYNRKCmI2vxhQ25me9mZiK5iJSdlTWm+6cndVyJleoHar8d7eathyB+ B/rWq1UI2CWQT13UVsTM0kZPqqcLGqoye647KLYlqhJWzkV3gZj2U5XeToI2FjMZDPD8 DxIYT0VS53TQj7nAkG6+2DLMj1nJ7zd9iinJrgGdNM+VOkbZXrFMiJo5rLTsXg9x7ynQ yzeW0AgR9L1v4bJufgRcaWbZBXNmIDcGi3kgTxsFpoS40+XJ8Ke52NSoNpJBTaGzTTI7 8HWkxQgGWbOUAzO2wuV1N3A3VOq3YxtnRhzEQpjfMABWpCXp49zJv69pwNFV9K80zR7H eBwA== X-Gm-Message-State: ABUngve4EYwnpbUSkaz58BNeuDbzofe5xj3+j12Bqz/R1wRaVOS1x97cIWk7Zs6bwlh2pg== X-Received: by 10.98.65.85 with SMTP id o82mr25320780pfa.168.1477663129449; Fri, 28 Oct 2016 06:58:49 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id l187sm19357417pfc.0.2016.10.28.06.58.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Oct 2016 06:58:48 -0700 (PDT) From: Jagan Teki To: Stefano Babic Date: Fri, 28 Oct 2016 19:27:45 +0530 Message-Id: <1477663067-20911-6-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477663067-20911-1-git-send-email-jagan@openedev.com> References: <1477663067-20911-1-git-send-email-jagan@openedev.com> Cc: Matteo Lisi , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 5/7] 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 --- 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,