not able to receive any indications using libqmi on Linaro

Aleksander Morgado aleksander at aleksander.es
Thu Dec 1 21:53:55 UTC 2016


On Thu, Dec 1, 2016 at 7:46 PM, Shilpa Velamuri <shilpa.vel at gmail.com> wrote:
> Is there a runtime debug flag that can be turned on to see log messages from
> libqmi to see if it is sending out any indications.

Yes:
    // Set default handler for all libqmi log messages
    g_log_set_handler ("Qmi", G_LOG_LEVEL_MASK, log_handler, NULL);
    // And enable traces so that sent/received messages are printed
    qmi_utils_set_traces_enabled (TRUE);

The log_handler method is a GLogFunc:
https://developer.gnome.org/glib/stable/glib-Message-Logging.html#GLogFunc

You can see an example in libqmi sources under src/qmicli/qmicli.c.

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list