From 6aced82c4f304c47d7affb8371edda093b11c81a Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sun, 18 Dec 2011 17:05:08 +0100 Subject: qom: introduce QERR_PROPERTY_VALUE_OUT_OF_RANGE This will be used when reject invalid values for integer fields that are less than 64-bits wide. Reviewed-by: Anthony Liguori Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- qerror.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qerror.c') diff --git a/qerror.c b/qerror.c index adde8a5859..9a75d06301 100644 --- a/qerror.c +++ b/qerror.c @@ -205,6 +205,11 @@ static const QErrorStringTable qerror_table[] = { .error_fmt = QERR_PROPERTY_VALUE_NOT_FOUND, .desc = "Property '%(device).%(property)' can't find value '%(value)'", }, + { + .error_fmt = QERR_PROPERTY_VALUE_OUT_OF_RANGE, + .desc = "Property '%(device).%(property)' doesn't take " + "value %(value) (minimum: %(min), maximum: %(max)'", + }, { .error_fmt = QERR_QMP_BAD_INPUT_OBJECT, .desc = "Expected '%(expected)' in QMP input", -- cgit v1.2.3