From: Nitesh Konkar Date: Tue, 7 Feb 2017 12:53:45 +0000 (+0530) Subject: Mention the min duration for nodesuspend explicitly X-Git-Tag: CVE-2017-2635~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f278a148e2791dfffb4c3b2acf2c44564a87e153;p=thirdparty%2Flibvirt.git Mention the min duration for nodesuspend explicitly Although currently this is documented in virsh man page and virsh help, the expicit mention in the error message is helful for tools using the API directly. Signed-off-by: Nitesh Konkar --- diff --git a/src/util/virnodesuspend.c b/src/util/virnodesuspend.c index 8bb8d93d0a..71b2d4cb7d 100644 --- a/src/util/virnodesuspend.c +++ b/src/util/virnodesuspend.c @@ -76,7 +76,9 @@ static int virNodeSuspendSetNodeWakeup(unsigned long long alarmTime) int ret = -1; if (alarmTime < MIN_TIME_REQ_FOR_SUSPEND) { - virReportError(VIR_ERR_INVALID_ARG, "%s", _("Suspend duration is too short")); + virReportError(VIR_ERR_INVALID_ARG, + _("Suspend duration is too short, must be at least %u seconds"), + MIN_TIME_REQ_FOR_SUSPEND); return -1; }