aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-11-24 12:37:50 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-01-16 11:24:11 +0100
commita8ea31ec9ac89f8ca75ea3f9ac0db3cfa7e25960 (patch)
treeb67a791a2c2a785c8fc0aa5aa53bad77ad871399 /utils
parentb303d59e6a31b17791ce63debadbd5d12ec24a73 (diff)
downloadexternal_libqmi-a8ea31ec9ac89f8ca75ea3f9ac0db3cfa7e25960.zip
external_libqmi-a8ea31ec9ac89f8ca75ea3f9ac0db3cfa7e25960.tar.gz
external_libqmi-a8ea31ec9ac89f8ca75ea3f9ac0db3cfa7e25960.tar.bz2
utils,swi-update: fix build error when DEBUG not defined
swi-update.c: In function ‘download_image’: swi-update.c:838:8: error: ‘debug’ undeclared (first use in this function) if (!debug) ^~~~~
Diffstat (limited to 'utils')
-rw-r--r--utils/swi-update.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/swi-update.c b/utils/swi-update.c
index 09c52dd..5183524 100644
--- a/utils/swi-update.c
+++ b/utils/swi-update.c
@@ -835,8 +835,6 @@ static int download_image(int serfd, char *buf, const char *image)
chunksize = filelen;
debug("write #%d (%zu)...", seq, chunksize);
- if (!debug)
- fprintf(stderr, ".");
rlen = create_ufwrite_req(buf, chunksize, seq++);
rlen += read(imgfd, buf + rlen, CHUNK);
filelen -= chunksize;