qapi: fix qmp_balloon() conversion
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 26 Apr 2012 20:15:02 +0000 (17:15 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Apr 2012 14:44:50 +0000 (11:44 -0300)
Commit d72f326431 forgot to convert a call from qerror_report() to
error_set(). Fix it.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
balloon.c

index 0166744aa89ae67827e2ccf9579e3fb7ae8cf269..aa354f75546122df10b4a9cba27e5725d8099c35 100644 (file)
--- a/balloon.c
+++ b/balloon.c
@@ -108,7 +108,7 @@ void qmp_balloon(int64_t value, Error **errp)
     }
 
     if (value <= 0) {
-        qerror_report(QERR_INVALID_PARAMETER_VALUE, "target", "a size");
+        error_set(errp, QERR_INVALID_PARAMETER_VALUE, "target", "a size");
         return;
     }