From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH 6/6] imx-usb-loader: Fix signed/unsigned arguments for printf
Date: Fri, 8 Nov 2013 22:12:59 +0400 [thread overview]
Message-ID: <1383934379-27100-8-git-send-email-shc_work@mail.ru> (raw)
In-Reply-To: <1383934379-27100-1-git-send-email-shc_work@mail.ru>
"%i" in format string requires a signed integer.
"%d" in format string requires a signed integer.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
scripts/imx/imx-usb-loader.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 7ccfc99..a2da579 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -319,7 +319,7 @@ static int transfer(struct libusb_device_handle *h, int report, unsigned char *p
memcpy(p, &tmp[1], *last_trans);
}
} else {
- printf("Unexpected report %i err=%i, cnt=%i, last_trans=%i, %02x %02x %02x %02x\n",
+ printf("Unexpected report %i err=%i, cnt=%u, last_trans=%i, %02x %02x %02x %02x\n",
tmp[0], err, cnt, *last_trans, tmp[0], tmp[1], tmp[2], tmp[3]);
err = 0;
}
@@ -468,7 +468,7 @@ static int read_memory(struct libusb_device_handle *h, struct usb_id *p_id,
tmp[0] = tmp[1] = tmp[2] = tmp[3] = 0;
err = transfer(h, 4, tmp, 64, &last_trans, p_id);
if (err) {
- printf("r4 in err=%i, last_trans=%i %02x %02x %02x %02x cnt=%d rem=%d\n",
+ printf("r4 in err=%i, last_trans=%i %02x %02x %02x %02x cnt=%u rem=%d\n",
err, last_trans, tmp[0], tmp[1], tmp[2], tmp[3], cnt, rem);
break;
}
@@ -476,7 +476,7 @@ static int read_memory(struct libusb_device_handle *h, struct usb_id *p_id,
if ((last_trans == 64) && (cnt == rem)) {
/* Last transfer is expected to be too large for HID */
} else {
- printf("err: %02x %02x %02x %02x cnt=%d rem=%d last_trans=%i\n",
+ printf("err: %02x %02x %02x %02x cnt=%u rem=%d last_trans=%i\n",
tmp[0], tmp[1], tmp[2], tmp[3], cnt, rem, last_trans);
}
last_trans = rem;
@@ -1240,7 +1240,7 @@ static int do_irom_download(struct libusb_device_handle *h, struct usb_id *p_id,
}
}
- printf("loading binary file(%s) to %08x, skip=0x%x, fsize=%d type=%d...\n",
+ printf("loading binary file(%s) to %08x, skip=0x%x, fsize=%u type=%d...\n",
curr->filename, dladdr, skip, fsize, type);
ret = load_file(h, p_id, p, cnt, buf, BUF_SIZE,
--
1.8.1.5
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2013-11-08 18:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 18:12 [PATCH 1/6] ARM: at91: " Alexander Shiyan
2013-11-08 18:12 ` [PATCH] Cleanup Kconfig files Alexander Shiyan
2013-11-08 18:12 ` [PATCH] net/Kconfig: Remove non-existent ARCH_DAVINCI Alexander Shiyan
2013-11-08 18:12 ` [PATCH 2/6] ARM: mxs: Fix signed/unsigned arguments for printf Alexander Shiyan
2013-11-08 18:12 ` [PATCH 3/6] commands: nandtest: " Alexander Shiyan
2013-11-08 18:12 ` [PATCH 4/6] net: netx: " Alexander Shiyan
2013-11-08 18:12 ` [PATCH 5/6] gui: " Alexander Shiyan
2013-11-08 18:12 ` Alexander Shiyan [this message]
2013-11-11 7:52 ` [PATCH 1/6] ARM: at91: " Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1383934379-27100-8-git-send-email-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox