libsigrok/hardware/sysclk-lwla
Uwe Hermann 1f98295dfa sysclk-lwla: Fix probe name issue.
The g_ascii_formatd() function expects the "format" argument to start
with a '%' character, e.g. it should be "%f" or such (this is not
clearly documented in the glib API docs, but visible from the source code).

The usage of "CH%f" for example will trigger an assertion and thus make the
LWLA device unusable in practice (e.g. in PulseView on Windows no probenames
would be shown, and sampling wouldn't work).

Example:
  GLib-CRITICAL **: g_ascii_formatd: assertion 'format[0] == '%'' failed

(not exposed in all glib versions or builds of glib on all distros
apparently, some may need G_MESSAGES_DEBUG=all or other measures)

From the glib g_ascii_formatd() code:
  g_return_val_if_fail (format[0] == '%', NULL);

We now use g_snprintf() instead for simplicity. This has been tested to
fix this specific issue (i.e. the probenames now do show up in PulseView).

This closes bug #270.
2014-01-14 19:52:26 +01:00
..
Makefile.am sysclk-lwla: Implement support for the LWLA1034. 2014-01-14 19:33:31 +01:00
api.c sysclk-lwla: Fix probe name issue. 2014-01-14 19:52:26 +01:00
lwla.c sysclk-lwla: Implement support for the LWLA1034. 2014-01-14 19:33:31 +01:00
lwla.h sysclk-lwla: Implement support for the LWLA1034. 2014-01-14 19:33:31 +01:00
protocol.c sysclk-lwla: Fix calculation of the running sample count. 2014-01-14 19:33:31 +01:00
protocol.h sysclk-lwla: Implement support for the LWLA1034. 2014-01-14 19:33:31 +01:00