otrx: use %zd to fix printf format warnings
authorrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 14 Apr 2015 16:16:11 +0000 (16:16 +0000)
committerrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 14 Apr 2015 16:16:11 +0000 (16:16 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45436 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/utils/otrx/src/otrx.c

index 7fe4ba6..e42aaca 100644 (file)
@@ -175,7 +175,7 @@ static int otrx_check() {
 
        buf = malloc(length);
        if (!buf) {
-               fprintf(stderr, "Couldn't alloc %d B buffer\n", length);
+               fprintf(stderr, "Couldn't alloc %zd B buffer\n", length);
                err =  -ENOMEM;
                goto err_close;
        }
@@ -183,7 +183,7 @@ static int otrx_check() {
        fseek(trx, trx_offset, SEEK_SET);
        bytes = fread(buf, 1, length, trx);
        if (bytes != length) {
-               fprintf(stderr, "Couldn't read %d B of data from %s\n", length, trx_path);
+               fprintf(stderr, "Couldn't read %zd B of data from %s\n", length, trx_path);
                err =  -ENOMEM;
                goto err_free_buf;
        }