From: Tom Rini <trini@konsulko.com>
Date: Tue, 22 Aug 2017 12:20:02 +0000 (-0400)
Subject: fastboot: Ensure we treat CONFIG_FASTBOOT_BUF_ADDR as long
X-Git-Tag: v2025.01-rc5-pxa1908~5985
X-Git-Url: http://git.dujemihanovic.xyz/browse.php?a=commitdiff_plain;h=90ae53ce1ae665a1b43ecf5ccafc339839392427;p=u-boot.git

fastboot: Ensure we treat CONFIG_FASTBOOT_BUF_ADDR as long

Otherwise:
drivers/usb/gadget/f_fastboot.c:564:32: warning: format "%lx" expects
argument of type "long unsigned int", but argument 3 has type "unsigned
int" [-Wformat=]

Signed-off-by: Tom Rini <trini@konsulko.com>
---

diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 199621d9f5..f3382a965b 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -561,7 +561,7 @@ static void do_bootm_on_complete(struct usb_ep *ep, struct usb_request *req)
 
 	puts("Booting kernel..\n");
 
-	sprintf(boot_addr_start, "0x%lx", CONFIG_FASTBOOT_BUF_ADDR);
+	sprintf(boot_addr_start, "0x%lx", (long)CONFIG_FASTBOOT_BUF_ADDR);
 	do_bootm(NULL, 0, 2, bootm_args);
 
 	/* This only happens if image is somehow faulty so we start over */