• Jan Beulich's avatar
    xenpm: make argument parsing and error handling more consistent · f034232c
    Jan Beulich authored
    Specifically, what values are or aren't accepted as CPU identifier, and
    how the values get interpreted should be consistent across sub-commands
    (intended behavior now: non-negative values are okay, and along with
    omitting the argument, specifying "all" will also be accepted).
    
    For error handling, error messages should get consistently issued to
    stderr, and the tool should now (hopefully) produce an exit code of
    zero only in the (partial) success case (there may still be a small
    number of questionable cases).
    Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
    Acked-by: default avatarKeir Fraser <keir@xen.org>
    f034232c
xenpm.c 37.2 KB