mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2026-08-08 17:03:33 +00:00
Error classes other than ERROR_CLASS_GENERIC_ERROR should not be used in new code. Hiding them in QERR_ macros makes new uses hard to spot. Fortunately, there's just one such macro left. Eliminate it with this coccinelle semantic patch: @@ expression EP, E; @@ -error_set(EP, QERR_DEVICE_NOT_FOUND, E) +error_set(EP, ERROR_CLASS_DEVICE_NOT_FOUND, "Device '%s' not found", E) Backports commit 75158ebbe259f0bd8bf435e8f4827a43ec89c877 from qemu |
||
|---|---|---|
| .. | ||
| container.c | ||
| cpu.c | ||
| Makefile.objs | ||
| object.c | ||
| qom-qobject.c | ||