MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / register_global_error_format

Function register_global_error_format

lib/hidapi/linux/hid.c:156–162  ·  view source on GitHub ↗

Similar to register_global_error, but allows passing a format string into this function. */

Source from the content-addressed store, hash-verified

154
155/* Similar to register_global_error, but allows passing a format string into this function. */
156static void register_global_error_format(const char *format, ...)
157{
158 va_list args;
159 va_start(args, format);
160 register_error_str_vformat(&last_global_error_str, format, args);
161 va_end(args);
162}
163
164/* Set the last error for a device to be reported by hid_error(dev).
165 * The given error message will be copied (and decoded according to the

Callers 3

hid.cFile · 0.70

Calls 1

Tested by

no test coverage detected