From: Luiz Capitulino Date: Thu, 19 Nov 2009 01:05:34 +0000 (-0200) Subject: QError: Add QERR_DEVICE_NOT_ACTIVE X-Git-Tag: v0.12.0-rc0~203 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=055f6122a6b6886348154bb8bef8dd022501c705;p=qemu.git QError: Add QERR_DEVICE_NOT_ACTIVE New class for device not active errors. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- diff --git a/qerror.c b/qerror.c index a12e7f7b1..0c0a5100a 100644 --- a/qerror.c +++ b/qerror.c @@ -44,6 +44,10 @@ const QErrorStringTable qerror_table[] = { .error_fmt = QERR_DEVICE_NOT_FOUND, .desc = "The %(device) device has not been found", }, + { + .error_fmt = QERR_DEVICE_NOT_ACTIVE, + .desc = "The %(device) device has not been activated by the guest", + }, {} }; diff --git a/qerror.h b/qerror.h index 413acc678..c1be8b96e 100644 --- a/qerror.h +++ b/qerror.h @@ -41,4 +41,7 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_DEVICE_NOT_FOUND \ "{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }" +#define QERR_DEVICE_NOT_ACTIVE \ + "{ 'class': 'DeviceNotActive', 'data': { 'device': %s } }" + #endif /* QERROR_H */