[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [patch 3/5] add QERR_BASE_ID_NOT_FOUND
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [patch 3/5] add QERR_BASE_ID_NOT_FOUND |
Date: |
Fri, 30 Dec 2011 08:03:40 -0200 |
User-agent: |
quilt/0.48-1 |
Signed-off-by: Marcelo Tosatti <address@hidden>
Index: stefanha/qerror.c
===================================================================
--- stefanha.orig/qerror.c
+++ stefanha/qerror.c
@@ -254,6 +254,10 @@ static const QErrorStringTable qerror_ta
.error_fmt = QERR_INVALID_PARAMETER_COMBINATION,
.desc = "Invalid paramter combination",
},
+ {
+ .error_fmt = QERR_BASE_ID_NOT_FOUND,
+ .desc = "The base id %(base_id) has not been found",
+ },
{}
};
Index: stefanha/qerror.h
===================================================================
--- stefanha.orig/qerror.h
+++ stefanha/qerror.h
@@ -210,4 +210,7 @@ QError *qobject_to_qerror(const QObject
#define QERR_INVALID_PARAMETER_COMBINATION \
"{ 'class': 'InvalidParameterCombination', 'data': {} }"
+#define QERR_BASE_ID_NOT_FOUND \
+ "{ 'class': 'BaseIdNotFound', 'data': { 'base_id': %s } }"
+
#endif /* QERROR_H */