summaryrefslogtreecommitdiff
path: root/tools/firmware-utils/src/asustrx.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-10-11 19:00:41 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2015-10-11 19:00:41 +0000
commit3d1a65adb41db2758827fe81f36d92ab61618ea3 (patch)
tree6915980ec09edb4801a9e33e7bacd80cd160fe27 /tools/firmware-utils/src/asustrx.c
parentf457ae99f20bed2f8482ca9f9f1e4e7ac2701d40 (diff)
downloadmtk-20170518-3d1a65adb41db2758827fe81f36d92ab61618ea3.zip
mtk-20170518-3d1a65adb41db2758827fe81f36d92ab61618ea3.tar.gz
mtk-20170518-3d1a65adb41db2758827fe81f36d92ab61618ea3.tar.bz2
tools: firmware-utils: fix compiler warnings
This just fixes a lot of compiler warnings. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47181
Diffstat (limited to 'tools/firmware-utils/src/asustrx.c')
-rw-r--r--tools/firmware-utils/src/asustrx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/asustrx.c b/tools/firmware-utils/src/asustrx.c
index 80b6b1d..67f2680 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;
}