]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Mention the min duration for nodesuspend explicitly
authorNitesh Konkar <niteshkonkar.libvirt@gmail.com>
Tue, 7 Feb 2017 12:53:45 +0000 (18:23 +0530)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 10 Feb 2017 14:13:30 +0000 (09:13 -0500)
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 <nitkon12@linux.vnet.ibm.com>
src/util/virnodesuspend.c

index 8bb8d93d0a45a7aaae47c5d1786d9a77f6bffb71..71b2d4cb7d2b989a4696b9d3bbe775e5e57cf1dc 100644 (file)
@@ -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;
     }