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

Function register_global_error_format

lib/hidapi/mac/hid.c:265–271  ·  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

263
264/* Similar to register_global_error, but allows passing a format string into this function. */
265static void register_global_error_format(const char *format, ...)
266{
267 va_list args;
268 va_start(args, format);
269 register_error_str_vformat(&last_global_error_str, format, args);
270 va_end(args);
271}
272
273/* Set the last error for a device to be reported by hid_error(dev).
274 * The given error message will be copied (and decoded according to the

Callers 1

hid.cFile · 0.70

Calls 1

Tested by

no test coverage detected