diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-01-13 22:06:07 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-01-16 11:24:16 +0100 |
commit | 4c37ab59f05cbff952b085d6b187b366dc3772eb (patch) | |
tree | 9b036a9d067db55a6be14a640d4dcdfc18218361 /src | |
parent | b12a257e523e0cb6c266b707814c60e9689f4a58 (diff) | |
download | external_libqmi-4c37ab59f05cbff952b085d6b187b366dc3772eb.zip external_libqmi-4c37ab59f05cbff952b085d6b187b366dc3772eb.tar.gz external_libqmi-4c37ab59f05cbff952b085d6b187b366dc3772eb.tar.bz2 |
qmi-firmware-update: warn about last chunk ack step taking long
Diffstat (limited to 'src')
-rw-r--r-- | src/qmi-firmware-update/qfu-updater.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qmi-firmware-update/qfu-updater.c b/src/qmi-firmware-update/qfu-updater.c index 750d487..c7a34ae 100644 --- a/src/qmi-firmware-update/qfu-updater.c +++ b/src/qmi-firmware-update/qfu-updater.c @@ -316,7 +316,7 @@ run_context_step_download_image (GTask *task) progress[sequence % G_N_ELEMENTS (progress)], 100.0 * ((gdouble) sequence / (gdouble) (n_chunks - 1))); else if (sequence == (n_chunks - 1)) - g_print (CLEAR_LINE "finalizing download...\n"); + g_print (CLEAR_LINE "finalizing download... (may take more than one minute, be patient)\n"); } if (!qfu_qdl_device_ufwrite (ctx->qdl_device, ctx->current_image, sequence, cancellable, &error)) { g_prefix_error (&error, "couldn't write in session: "); @@ -326,6 +326,9 @@ run_context_step_download_image (GTask *task) g_debug ("[qfu-updater] all chunks ack-ed"); + if (!qfu_log_get_verbose ()) + g_print (CLEAR_LINE); + if (!qfu_qdl_device_ufclose (ctx->qdl_device, cancellable, &error)) { g_prefix_error (&error, "couldn't close session: "); goto out; |