xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Xiao Liang <xiliang@redhat.com>
To: wei.liu2@citrix.com
Cc: xiliang <xiliang@redhat.com>,
	ian.jackson@eu.citrix.com, xen-devel@lists.xen.org
Subject: [PATCH v2] xl: add --clear option to dmesg command
Date: Tue,  1 Aug 2017 23:57:50 +0800	[thread overview]
Message-ID: <20170801155750.22823-1-xiliang@redhat.com> (raw)

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

             reply	other threads:[~2017-08-01 15:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-01 15:57 Xiao Liang [this message]
2017-08-01 16:10 ` [PATCH v2] xl: add --clear option to dmesg command 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170801155750.22823-1-xiliang@redhat.com \
    --to=xiliang@redhat.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).