diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-08-18 17:09:59 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-08-18 17:09:59 +0100 |
commit | daefca342654607db724ce79e212d29d029d662d (patch) | |
tree | c487c5f03b5243b31e19a2bbe487fd5889bf4ac6 /MAINTAINERS | |
parent | 7faaa30132c201c228fafada4bb066efe51e6517 (diff) | |
download | xen-daefca342654607db724ce79e212d29d029d662d.tar.gz xen-daefca342654607db724ce79e212d29d029d662d.tar.bz2 xen-daefca342654607db724ce79e212d29d029d662d.zip |
tools/libxl: fix "xl console" for primary console
libxl_console_constype is an enum and can therefore be unsigned so
using -1 as a sentinel for unset in main_console fails to work as
expected.
Arrange for all valid enum values to be > 0 and use 0 as the sentinal
instead.
If the user does not request a specific type then always use the
primary console since using "-n" but not "-t" is not meaningful as we
do not know which type to request.
Also make libxl_console_exec reject invalid values of type.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions