mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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:
1 parent
b93d8718ca
commit
32e7db7f6f
1 file changed
+5
-1
+5
-1
@@ -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;
|
||||
|
||||