diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-05-07 10:57:20 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-03 16:08:50 +0200 |
commit | 30383ded150c04b737439233aa6faca42caa754d (patch) | |
tree | b33a0ddc86e3bd40d8a52c056af08a5e8782ec06 /cli | |
parent | ea91ac2365855afe44b2839e4f47bcab525250cc (diff) | |
download | external_libqmi-30383ded150c04b737439233aa6faca42caa754d.zip external_libqmi-30383ded150c04b737439233aa6faca42caa754d.tar.gz external_libqmi-30383ded150c04b737439233aa6faca42caa754d.tar.bz2 |
cli: add debug logs to easily follow the flow
Diffstat (limited to 'cli')
-rw-r--r-- | cli/qmicli.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cli/qmicli.c b/cli/qmicli.c index 3c84824..8650da5 100644 --- a/cli/qmicli.c +++ b/cli/qmicli.c @@ -144,6 +144,7 @@ qmicli_async_operation_done (void) cancellable = NULL; } + g_debug ("Asynchronous operation done... quitting the loop"); g_main_loop_quit (loop); } @@ -160,13 +161,19 @@ device_open_ready (QmiDevice *device, } /* As soon as we get the QmiDevice, launch the specific action requested */ + g_debug ("QMI Device at '%s' ready", + qmi_device_get_path_display (device)); /* DMS options? */ - if (qmicli_dms_options_enabled ()) + if (qmicli_dms_options_enabled ()) { + g_debug ("Running DMS operation..."); qmicli_dms_run (device, cancellable); + } /* WDS options? */ - else if (qmicli_wds_options_enabled ()) + else if (qmicli_wds_options_enabled ()) { + g_debug ("Running WDS operation..."); qmicli_wds_run (device, cancellable); + } /* No options? */ else { g_printerr ("error: no actions specified\n"); |