Similar to register_global_error, but allows passing a format string into this function. */
| 263 | |
| 264 | /* Similar to register_global_error, but allows passing a format string into this function. */ |
| 265 | static 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 |
no test coverage detected