Similar to register_device_error, but you can pass a format string into this function. */
| 173 | |
| 174 | /* Similar to register_device_error, but you can pass a format string into this function. */ |
| 175 | static void register_device_error_format(hid_device *dev, const char *format, ...) |
| 176 | { |
| 177 | va_list args; |
| 178 | va_start(args, format); |
| 179 | register_error_str_vformat(&dev->last_error_str, format, args); |
| 180 | va_end(args); |
| 181 | } |
| 182 | |
| 183 | /* Get an attribute value from a udev_device and return it as a whar_t |
| 184 | string. The returned string must be freed with free() when done.*/ |
no test coverage detected