• Kir Kolyshkin's avatar
    criu --help: print a proper list of features · 5723b8fb
    Kir Kolyshkin authored
    Remove that weird special case from check_add_feature() function, making
    it a separate pr_check_features(), which prints a SEP-separated list of
    feature names, obeying the max WIDTH, and prepending each line with
    OFFSET. That way, we have a decept --help output:
    
      --feature FEAT        only check a particular feature, one of:
                                mnt_id, mem_dirty_track, aio_remap, timerfd, tun,
                                userns, fdinfo_lock, seccomp_suspend,
                                seccomp_filters, loginuid, cgroupns, autofs
    
    Alternatively, we could just drop the functionality of showing all the
    individual features to check.
    
    [v2: use %s in pr_msg to fix a -Wformat-security warning]
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    5723b8fb
cr-check.c 22.2 KB