From: David Vrabel Subject: [PATCH 2/5] tools/mce: clarify xen-mceinj usage Date: Mon, 23 Jun 2014 18:56:58 +0100 Message-ID: <1403546221-4149-3-git-send-email-david.vrabel@citrix.com> References: <1403546221-4149-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wz8UR-0003yR-2H for xen-devel@lists.xenproject.org; Mon, 23 Jun 2014 17:57:11 +0000 In-Reply-To: <1403546221-4149-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Campbell , Stefano Stabellini , Liu Jinsong , Christoph Egger , Ian Jackson , David Vrabel List-Id: xen-devel@lists.xenproject.org Correctly name --page option and make it clear that it takes a parameter. Use consistent formatting for help message. Remove unused options. Signed-off-by: David Vrabel --- tools/tests/mce-test/tools/xen-mceinj.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/tests/mce-test/tools/xen-mceinj.c b/tools/tests/mce-test/tools/xen-mceinj.c index 7030bb2..51ca175 100644 --- a/tools/tests/mce-test/tools/xen-mceinj.c +++ b/tools/tests/mce-test/tools/xen-mceinj.c @@ -528,7 +528,6 @@ static struct option opts[] = { {"domain", 0, 0, 'd'}, {"dump", 0, 0, 'D'}, {"help", 0, 0, 'h'}, - {"log", 0, 0, 'l'}, {"page", 0, 0, 'p'}, {"", 0, 0, '\0'} }; @@ -540,11 +539,11 @@ static void help(void) "Mandatory arguments to long options are mandatory" "for short options too.\n" " -D, --dump dump addr info without error injection\n" - " -c, --cpu=CPU_ID target CPU\n" - " -d, --domain=DomID target domain, the default is Xen itself\n" + " -c, --cpu=CPU target CPU\n" + " -d, --domain=DOMID target domain, the default is Xen itself\n" " -h, --help print this page\n" - " -p, --phyaddr physical address\n" - " -t, --type=error error type\n" + " -p, --page=ADDR physical address to report\n" + " -t, --type=ERROR error type\n" " 0 : MCE_SRAO_MEM\n" " 1 : MCE_SRAO_LLC\n" " 2 : CMCI_UCNA_LLC\n" @@ -574,7 +573,7 @@ int main(int argc, char *argv[]) } while ( 1 ) { - c = getopt_long(argc, argv, "c:Dd:t:hp:r", opts, &opt_index); + c = getopt_long(argc, argv, "c:Dd:t:hp:", opts, &opt_index); if ( c == -1 ) break; switch ( c ) { -- 1.7.10.4