From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X4R6m-0006Vd-Uu for barebox@lists.infradead.org; Tue, 08 Jul 2014 08:50:43 +0000 From: Sascha Hauer Date: Tue, 8 Jul 2014 10:50:01 +0200 Message-Id: <1404809417-21477-6-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1404809417-21477-1-git-send-email-s.hauer@pengutronix.de> References: <1404809417-21477-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 05/21] of: platform: Use PRINTF_CONVERSION_RESOURCE for printing resources To: barebox@lists.infradead.org Avoids compiler warnings about wrong format specifiers Signed-off-by: Sascha Hauer --- drivers/of/platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 72e75cc..c417cfd 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -183,7 +183,8 @@ static struct device_d *of_platform_device_create(struct device_node *np, dev->num_resources = num_reg; of_device_make_bus_id(dev); - debug("%s: register device %s, io=0x%08x\n", __func__, dev_name(dev), + debug("%s: register device %s, io=" PRINTF_CONVERSION_RESOURCE "\n", + __func__, dev_name(dev), (num_reg) ? dev->resource[0].start : (-1)); ret = platform_device_register(dev); -- 2.0.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox