MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / perr

Function perr

dependencies/libusb-1.0.22/examples/source/xusb.c:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59static const char* binary_name = NULL;
60
61static void perr(char const *format, ...)
62{
63 va_list args;
64
65 va_start (args, format);
66 vfprintf(stderr, format, args);
67 va_end(args);
68}
69
70#define ERR_EXIT(errcode) do { perr(" %s\n", libusb_strerror((enum libusb_error)errcode)); return -1; } while (0)
71#define CALL_CHECK(fcall) do { int _r=fcall; if (_r < 0) ERR_EXIT(_r); } while (0)

Callers 6

get_mass_storage_statusFunction · 0.85
get_senseFunction · 0.85
test_mass_storageFunction · 0.85
test_deviceFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_mass_storageFunction · 0.68
test_deviceFunction · 0.68