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