From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0065.outbound.protection.outlook.com [104.47.34.65]) by dpdk.org (Postfix) with ESMTP id EE8E11D02C for ; Fri, 8 Jun 2018 19:10:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=heG9IGogiAhR1FDg6CadyLTseK0YX+bl+hroXc3Tkfg=; b=OlB+tyd131JLK+sqtfhwMxA6V4/sY/SYg/7XhnStDQ2qJm6oPXqM9GdRRp9znJ9yCYWTJzbC9icpVmihHJ9W0GS+Ffcv5N+VEUjNil9HwqJRGpii2cNnN3xTOteiEzjowXEgRgj+SfzpgAWTUdBkROJWGy488EwNwTTnkYWPf7o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by SN6PR07MB4911.namprd07.prod.outlook.com (2603:10b6:805:3c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.15; Fri, 8 Jun 2018 17:10:55 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Fri, 8 Jun 2018 22:39:25 +0530 Message-Id: <1528477766-15788-15-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR01CA0111.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::27) To SN6PR07MB4911.namprd07.prod.outlook.com (2603:10b6:805:3c::29) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4911; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 3:CzNs9Ks2Fapi8JK46i/6goJz0mIotLJlc38TJCBa2iaVDPU+8ThZvZRxWDjz0q5V53pek0gyCWeQ/QtVzO+4k1q5bAP72Hx9Cca2y/qBcTe47UZQzBgf/exOs2DelVl6CH+nzuk4DRi7OYL2aOOuCn2ie/RwsiDiMNEXSA8kjWWLC9tLfdY4RWp2A+p3yt+PGTyq8nQHYe3fgv9IUeGlA86G6qm1b8e25UAiJqXoT4yqcoLe6YnV97PunJK1UwWh; 25:xo35j3Ym475dD6sj6789Huro9cFHb9munlxC1FWbAMql1CT5YgtnAfQeUSkAChgas0+FJSBS0le9H8kNcHnRvnjjxseaIvDRphyxFpjRJznWowTxfCyUCM3P4sD4zykW/Jm7ZXWpmYgPXIMSC4n+Q0FX7n8DzoPULYX5HuWLsPVqLmxyCwUfYFJgiFA7fdRfCbPr/9p5WjqS1l6faLXnpDmVmsNEdxdNLaVfgScpMKxqYHXI32mgS+URIfJwfNOEKrZ5vQLEZG0GIqCzJDA7GTeAusm88vkUbzM8YjqrXprErmqc5e6GDYE73gABXzR3orAXIrbeRRM4sDRsIDdMwQ==; 31:UX12Eprv4h8zFA0xuS153omj+2loE7iDu2UkJasNfYNqhzxVxAisMASSCZL8cgo73kEJbrywiKte2VLSPQCKRQrubJCvkAkeIN4Se969ctaPZ6MlkgBC2RONM/hC2hecFi8nhfvCmTmzTbYZGfAF7Sg4tMftMINdz5hQRiQfNXz6rzScuvozhKUbdeVdeyIZeL/xao0xFX2jcaZUzerpd9OIAFM1oou9YSjtxbFUuEM= X-MS-TrafficTypeDiagnostic: SN6PR07MB4911: X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 20:NCb5peMLggZ4TCTglIXPlbCzBLk+D47p3YgDqZg+g2lVaFSMl1lQowIawGst6rVt4S1rmRQjd08bbrzS5xViG3nquQjLtaObjINY4AUgMBYXsdpK9bsXxntrqu5t7vfqTEopFHDnNuTzNOp9VrYtiAlGGuimeYiFz2GEm+mDX/GHyfR2OdRzgLww5pKHEtzjC2P9/SxPihH/9lW4r6FlG6uOMIXuXJgfcJmEXGWZtZQmwLihFb11OwQuL++ww0tCg8ypj+D747MNV++bjobzF/MojFOg/jUtbkJscDNRT6PASj4gNxTV/3VYPC9aCZUtEpN/2NBZ6lcrMY8x076w17DmTswhCe981IHaNM0pjc0isNSNSr2SmPSeC2ST8NAYz1VAjnRQK1BtvuDfePGVKS+B7iNtyUV0zKRG8Ls0qWtRFlmnSOyOPmJjV20arkcEHk6zCIHGnXUpn2EGRRoHYmw+5wY9JZIyYrXBMBzL61fSDg5I+vlhSqcRv5bRCT3Afw8DCQfBKe5PsiCTLk9xre1K8jMOYJ2y7k7cyqgKdm8ttEBZacke8WVy20hOkfZHCjYnSaV3LwZWw8rLkDhNVf8pyKbCY2BBOIU9MC0hq9A=; 4:dNYvWRWzky54JJPxp5copZwajiIMYdxR9w8Wb0yYAWrIaXxOgfpez24lA2GZHUd/e4DSxK+nlivq7gjV6+OSdxdcAB2g+A+OFY8rtiklwy8zqUnAtKbOrkbIiTklMzzaxuX5gaH7JnuJ7kkUjdek2NAy98auuLKI5Drigz6lBSodp+YgwqV5sr995lXk5diqfsPuedLs3QPtz9FTvXD8CC8OacZxocRhyibLgw91wqU37E1pqzZvkPEUYOeXj2YKpJUQVH1E0eBSj2eCnDKZ0w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:SN6PR07MB4911; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4911; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(376002)(396003)(346002)(199004)(189003)(6666003)(4326008)(54906003)(76176011)(5660300001)(25786009)(48376002)(50466002)(59450400001)(446003)(386003)(186003)(11346002)(16526019)(2616005)(42882007)(44832011)(51416003)(476003)(66066001)(110136005)(36756003)(316002)(55236004)(2906002)(7736002)(81156014)(81166006)(8936002)(50226002)(106356001)(105586002)(68736007)(52116002)(26005)(956004)(8676002)(305945005)(53936002)(6512007)(47776003)(486006)(478600001)(6486002)(6116002)(72206003)(3846002)(16586007)(6506007)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4911; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR07MB4911; 23:Q31rnPF5QucuP1PztHjYxdwhmEGBWN7FclFtjnt3K?= =?us-ascii?Q?lx3K3d6Jn0oxI5YxLvQL1xoSbbJ7vLTL6qMS59XWB/zoIxs3LerYdYW/sKvM?= =?us-ascii?Q?zLqxgcCGCUx15ddsJCTZZQ3Qqtp6adMMT/5INeSP+2a1A8uC43BnKQZ8sKmI?= =?us-ascii?Q?QGe+ZoHhFvOV+XcSt0h7aGI6ZQKGun8tUIy3JECG9R9NlAq5up0dXPk6iCxG?= =?us-ascii?Q?c9a2qLuRf15YMmWYrdclRrhu84Qa/RA1xgELRn/LbD+WBDlTV9BPcgLghSVj?= =?us-ascii?Q?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7lzWb5/ZXH+HA6VhAB67TQ41ArE7a9NJcCaQUKlOwdTaHHzpl4jgUOCsiu1pGic1Nv7WG+zFMVzQ4i2kT3e0erbrIxisn+QNZ6U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 7:2C9eJJnQg+s6LJQ/kFLzpZ5GPCZ/U85opUrmzkBubvq3XJlr7hjfpejPm/rmQ5gY1bppqQJS5EWw0Ushx08Y+ERlYw8ZK2MG8L0FFS+pUSvQN/jPiD/5uZceNzskLfbStrBKWKfXyPcheiMpTRKQvISkJ2qE+C320zBBRmdgPAzEZPvlQGQjJZaYcaPeMe+RUC4uELVPe3VqRXp6d9CDc0JXRKDcyjLcC+phWjdi++GlFX2pYeS8iznXc+FzXSaf X-MS-Office365-Filtering-Correlation-Id: b6da62dc-a04f-4fc7-ecf7-08d5cd62cd0b X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 17:10:55.1357 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6da62dc-a04f-4fc7-ecf7-08d5cd62cd0b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4911 Subject: [dpdk-dev] [PATCH 14/15] examples/l2fwd: use fprint instead of printf for usage print X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2018 17:10:59 -0000 Following the convention of l3fwd, using fprintf instead of printf for printing usage. Signed-off-by: Anoob Joseph --- examples/l2fwd/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 05f9d28..3b697d1 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -64,7 +64,9 @@ struct rte_mempool * l2fwd_pktmbuf_pool = NULL; static void l2fwd_usage(const char *prgname) { - printf("%s [EAL options] -- -p PORTMASK [-q NQ]\n" + fprintf(stderr, "%s [EAL options] --" + " -p PORTMASK" + " [-q NQ]\n" " -p PORTMASK: hexadecimal bitmask of ports to configure\n" " -q NQ: number of queue (=ports) per lcore (default is 1)\n" " -T PERIOD: statistics will be refreshed each PERIOD seconds (0 to disable, 10 default, 86400 maximum)\n" -- 2.7.4