xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] xl: add --clear option to dmesg command
@ 2017-08-01 15:57 Xiao Liang
  2017-08-01 16:10 ` Wei Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Xiao Liang @ 2017-08-01 15:57 UTC (permalink / raw)
  To: wei.liu2; +Cc: xiliang, ian.jackson, xen-devel

From: xiliang <xiliang@redhat.com>

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

Signed-off-by: xiliang <xiliang@redhat.com>
---
 tools/xl/xl_info.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/xl/xl_info.c b/tools/xl/xl_info.c
index 94bd1fd9ab..e9890ca5f2 100644
--- a/tools/xl/xl_info.c
+++ b/tools/xl/xl_info.c
@@ -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;
-- 
2.13.3


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-04 14:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-01 15:57 [PATCH v2] xl: add --clear option to dmesg command Xiao Liang
2017-08-01 16:10 ` Wei Liu
2017-08-04 10:57   ` Wei Liu
2017-08-04 11:05     ` Wei Liu
2017-08-04 14:34       ` Xiao Liang
2017-08-04 14:35         ` Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).