Skip to contentSkip to conversation

xl: add --clear option to dmesg command

PATCH In review Xiao Liang 2 participants 6 messages Aug 1, 2017 – Aug 4, 2017

lore
Share & tools
lore

Xiao Liang

author
#0 lore raw

PATCH v2 1/1 xl: add --clear option to dmesg command

From: xiliang <[email protected]>

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

---
 tools/xl/xl_info.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
tools/xl/xl_info.c +5 -1
index 94bd1fd9ab..e9890ca5f2 100644
@@ -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;
Signature · 7 lines
2.13.3


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
Quoted 9 lines · Wei Liu
Quoted 3 lines · Xiao Liang

From: xiliang <[email protected]>

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

I will wrap this long line to 72 columns while committing.

Quoted 2 lines

I was about to commit this, but I realised "xiliang" as your name seems wrong. Should it be "Xi Liang" instead?

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw
Quoted 6 lines · Wei Liu
Quoted 5 lines · Wei Liu
Quoted 3 lines · Xiao Liang

From: xiliang <[email protected]>

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

Quoted 7 lines
Quoted 4 lines

I will wrap this long line to 72 columns while committing.

Quoted 2 lines

I was about to commit this, but I realised "xiliang" as your name seems wrong. Should it be "Xi Liang" instead?

I think it should be "Xiao Liang" because that is what is in your email handle.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#4 lore raw

Yes, the full name is "Xiao Liang". Thanks :)

Quoted 5 lines · Wei Liu
Quoted 4 lines · Wei Liu
Quoted 3 lines · Wei Liu
Quoted 2 lines · Xiao Liang

From: xiliang <[email protected]>

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

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

I will wrap this long line to 72 columns while committing.

Quoted 1 line

I was about to commit this, but I realised "xiliang" as your name seems wrong. Should it be "Xi Liang" instead?

I think it should be "Xiao Liang" because that is what is in your email handle.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel