diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-26 08:13:47 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-26 08:13:47 +0100 |
commit | a8ad76437ed5fa7e17df49da17d4214484b85a96 (patch) | |
tree | c5f7eac1dba707c6cfbffe20e7ca524cbd75d81d /tools/libxl/xl_cmdtable.c | |
parent | 961652b3bd19c9417a87c54a883f5fa7e9805d0a (diff) | |
download | xen-a8ad76437ed5fa7e17df49da17d4214484b85a96.tar.gz xen-a8ad76437ed5fa7e17df49da17d4214484b85a96.tar.bz2 xen-a8ad76437ed5fa7e17df49da17d4214484b85a96.zip |
xl: Some small fixes
- When use mem-set, I got suspicious error output:
# xl mem-set 1 256g
setting domid 1 memory to : 268435456
[0] libxl.c:2535:libxl_set_memory_target: memory_dynamic_max must be
less than or equal to memory_static_max
: Success
- String generated by strdup() should be freed
- When using 'xl help', mem-max and mem-set's output is not as intend,
and it also breaks bash completion, fix it.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r-- | tools/libxl/xl_cmdtable.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c index 22c3feada1..feda1f9c92 100644 --- a/tools/libxl/xl_cmdtable.c +++ b/tools/libxl/xl_cmdtable.c @@ -110,17 +110,13 @@ struct cmd_spec cmd_table[] = { }, { "mem-max", &main_memmax, - "Set the maximum amount reservation for a domain.\n" - "Units default to kilobytes, but can be suffixed with\n" - "'b' (bytes), 'k' (KB), 'm' (MB), 'g' (GB) or 't' (TB)", - "<Domain> <MemKB>", + "Set the maximum amount reservation for a domain", + "<Domain> <MemKB['b'[bytes]|'k'[KB]|'m'[MB]|'g'[GB]|'t'[TB]]>", }, { "mem-set", &main_memset, - "Set the current memory usage for a domain.\n" - "Units default to kilobytes, but can be suffixed with\n" - "'b' (bytes), 'k' (KB), 'm' (MB), 'g' (GB) or 't' (TB)", - "<Domain> <MemKB>", + "Set the current memory usage for a domain", + "<Domain> <MemKB['b'[bytes]|'k'[KB]|'m'[MB]|'g'[GB]|'t'[TB]]>", }, { "button-press", &main_button_press, |