aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmi-firmware-update
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-01-20 17:05:44 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-01-20 17:05:44 +0100
commitea4b06c9f3b114d90a193e4cbc64cc08ba57a27f (patch)
tree9760b4f977f963c2c9d01f44e9accd3c21d32022 /src/qmi-firmware-update
parent3e7cda53b1ce24e23f8355b75ff13b924dd72f6d (diff)
downloadexternal_libqmi-ea4b06c9f3b114d90a193e4cbc64cc08ba57a27f.zip
external_libqmi-ea4b06c9f3b114d90a193e4cbc64cc08ba57a27f.tar.gz
external_libqmi-ea4b06c9f3b114d90a193e4cbc64cc08ba57a27f.tar.bz2
qmi-firmware-update: avoid logging when we don't detect sub-images
Diffstat (limited to 'src/qmi-firmware-update')
-rw-r--r--src/qmi-firmware-update/qfu-image-cwe.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/qmi-firmware-update/qfu-image-cwe.c b/src/qmi-firmware-update/qfu-image-cwe.c
index 463d6bc..a0631de 100644
--- a/src/qmi-firmware-update/qfu-image-cwe.c
+++ b/src/qmi-firmware-update/qfu-image-cwe.c
@@ -454,14 +454,10 @@ load_image_info (QfuImageCwe *self,
while (walker < image_end_offset) {
goffset tested_offset;
/* Read embedded image */
-
tested_offset = g_seekable_tell (G_SEEKABLE (input_stream));
- g_debug ("[qfu-image-cwe] %schecking image at offset %" G_GOFFSET_FORMAT "...", parent_prefix, tested_offset);
- if (!load_image_info (self, input_stream, image_prefix, image_index, image_end_offset, cancellable, NULL)) {
- g_debug ("[qfu-image-cwe] %simage at offset %" G_GOFFSET_FORMAT " was NOT valid", parent_prefix, tested_offset);
+ if (!load_image_info (self, input_stream, image_prefix, image_index, image_end_offset, cancellable, NULL))
break;
- }
- g_debug ("[qfu-image-cwe] %simage at offset %" G_GOFFSET_FORMAT " was valid", parent_prefix, tested_offset);
+ g_debug ("[qfu-image-cwe] %simage at offset %" G_GOFFSET_FORMAT " is valid", parent_prefix, tested_offset);
walker = g_seekable_tell (G_SEEKABLE (input_stream));
}