]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/virsh.c: add error messages for negative memory size as
authorDaniel Veillard <veillard@redhat.com>
Tue, 20 Mar 2007 15:31:46 +0000 (15:31 +0000)
committerDaniel Veillard <veillard@redhat.com>
Tue, 20 Mar 2007 15:31:46 +0000 (15:31 +0000)
  pointed out by Masayuki Sunou
Daniel

ChangeLog
src/virsh.c

index 8a812846f096f8404d4aa2dd8eba22b5252f6f6e..d9e686e3c7597158639b998e712cae0e0d9e4e35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Mar 20 16:40:06 CET 2007 Daniel Veillard <veillard@redhat.com>
+
+       * src/virsh.c: add error messages for negative memory size as
+         pointed out by Masayuki Sunou
+
 Tue Mar 20 16:30:29 CET 2007 Daniel Veillard <veillard@redhat.com>
 
        * src/xen_internal.c: applied patch from Atsushi SAKAI fixing 
index 5302d4e8f74d8a28e81803f0399ee870d113a702..c6fbf7305f2ac22c14c03ecf2e3cbff729efd8d8 100644 (file)
@@ -1461,6 +1461,7 @@ cmdSetmem(vshControl * ctl, vshCmd * cmd)
     bytes = vshCommandOptInt(cmd, "bytes", &bytes);
     if (bytes <= 0) {
         virDomainFree(dom);
+       vshError(ctl, FALSE, _("Invalid value of %d for memory size"), bytes);
         return FALSE;
     }
 
@@ -1504,6 +1505,7 @@ cmdSetmaxmem(vshControl * ctl, vshCmd * cmd)
     bytes = vshCommandOptInt(cmd, "bytes", &bytes);
     if (bytes <= 0) {
         virDomainFree(dom);
+       vshError(ctl, FALSE, _("Invalid value of %d for memory size"), bytes);
         return FALSE;
     }