diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2015-10-11 19:00:41 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2015-10-11 19:00:41 +0000 |
commit | 0ab09e313739ebe5a2d9c3c35354422149760383 (patch) | |
tree | d74b7f621d77beaaa094dc50e5f5409d54807578 /tools/firmware-utils/src/asustrx.c | |
parent | 636c344cba43ceafadb4b4f4616bb876efe33907 (diff) | |
download | master-187ad058-0ab09e313739ebe5a2d9c3c35354422149760383.tar.gz master-187ad058-0ab09e313739ebe5a2d9c3c35354422149760383.tar.bz2 master-187ad058-0ab09e313739ebe5a2d9c3c35354422149760383.zip |
tools: firmware-utils: fix compiler warnings
This just fixes a lot of compiler warnings.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47181 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils/src/asustrx.c')
-rw-r--r-- | tools/firmware-utils/src/asustrx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/asustrx.c b/tools/firmware-utils/src/asustrx.c index 80b6b1dfcc..67f2680b31 100644 --- a/tools/firmware-utils/src/asustrx.c +++ b/tools/firmware-utils/src/asustrx.c @@ -197,7 +197,7 @@ int main(int argc, char **argv) { } for (i = 0; i < bytes; i++) { if (buf[i]) { - fprintf(stderr, "Input TRX doesn't have last 64 B empty %s\n"); + fprintf(stderr, "Input TRX doesn't have last 64 B empty %s\n", out_path); err = -ENOSPC; goto err; } @@ -217,7 +217,7 @@ int main(int argc, char **argv) { bytes = sizeof(tail); fseek(out, -bytes, SEEK_CUR); if (fwrite(&tail, 1, bytes, out) != bytes) { - fprintf(stderr, "Couldn't write %zu B to %s\n", bytes); + fprintf(stderr, "Couldn't write %zu B to %s\n", bytes, out_path); err = -EIO; goto err; } @@ -242,7 +242,7 @@ int main(int argc, char **argv) { hdr.crc32 = cpu_to_le32(crc32); rewind(out); if (fwrite(&hdr, 1, bytes, out) != bytes) { - fprintf(stderr, "Couldn't write %zu B to %s\n", bytes); + fprintf(stderr, "Couldn't write %zu B to %s\n", bytes, out_path); err = -EIO; goto err; } |