Skip to content
Snippets Groups Projects
Commit 90ae53ce authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@konsulko.com>
parent ad8afeae
No related branches found
No related tags found
No related merge requests found
...@@ -561,7 +561,7 @@ static void do_bootm_on_complete(struct usb_ep *ep, struct usb_request *req) ...@@ -561,7 +561,7 @@ static void do_bootm_on_complete(struct usb_ep *ep, struct usb_request *req)
puts("Booting kernel..\n"); 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); do_bootm(NULL, 0, 2, bootm_args);
/* This only happens if image is somehow faulty so we start over */ /* This only happens if image is somehow faulty so we start over */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment