xl: add --clear option to dmesg command

The manual of xl says --clear option is supported and that option
worked for xm. Add that to xl now.

Signed-off-by: Xiao Liang <xiliang@redhat.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
xiliang authored and Wei Liu committed 2017-08-04 15:36:29 +01:00
1 parent b93d8718ca
commit 32e7db7f6f
1 file changed
+5 -1
+5 -1
View File
@@ -884,8 +884,12 @@ int main_dmesg(int argc, char **argv)
libxl_xen_console_reader *cr;
char *line;
int opt, ret = 1;
static struct option opts[] = {
{"clear", 0, 0, 'c'},
COMMON_LONG_OPTS
};
SWITCH_FOREACH_OPT(opt, "c", NULL, "dmesg", 0) {
SWITCH_FOREACH_OPT(opt, "c", opts, "dmesg", 0) {
case 'c':
clear = 1;
break;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.