]> Git Repo - qemu.git/commitdiff
accel: Report unknown accelerator as "not found" instead of "does not exist"
authorEduardo Habkost <[email protected]>
Fri, 26 Sep 2014 20:45:23 +0000 (17:45 -0300)
committerPaolo Bonzini <[email protected]>
Sat, 4 Oct 2014 06:59:15 +0000 (08:59 +0200)
As the accelerator classes won't be registered anymore if they are not
enabled at compile time, saying "does not exist" may be misleading, as
the accelerator may be simply disabled. Change the wording to just say
"not found".

Suggested-by: Paolo Bonzini <[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
accel.c

diff --git a/accel.c b/accel.c
index 85177f1b52dc4a457a634c7fdd65948eecf640a5..fce6eabbf5c5ee693d65a70dfd038a016152a1eb 100644 (file)
--- a/accel.c
+++ b/accel.c
@@ -79,7 +79,7 @@ int configure_accelerator(MachineClass *mc)
         p = get_opt_name(buf, sizeof(buf), p, ':');
         acc = accel_find(buf);
         if (!acc) {
-            fprintf(stderr, "\"%s\" accelerator does not exist.\n", buf);
+            fprintf(stderr, "\"%s\" accelerator not found.\n", buf);
             continue;
         }
         if (acc->available && !acc->available()) {
This page took 0.032795 seconds and 4 git commands to generate.