Message ID | ba2c6556-7fb0-4db2-aa9d-c21d66bf512f@redhat.com |
---|---|
State | New |
Headers | show |
--- a/accel.c +++ b/accel.c @@ -99,7 +99,12 @@ void configure_accelerator(MachineState *ms) p = get_opt_name(buf, sizeof(buf), p, ':'); acc = accel_find(buf); if (!acc) { - fprintf(stderr, "\"%s\" accelerator not found.\n", buf); + if (*p != ':') { + /* to avoid to pollute logs, display error only + * on the last accelerator of the list + */ + fprintf(stderr, "\"%s\" accelerator not found.\n", buf); + } continue; } if (acc->available && !acc->available()) {