From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0072.outbound.protection.outlook.com [104.47.36.72]) by dpdk.org (Postfix) with ESMTP id 7F65D1E474 for ; Thu, 14 Jun 2018 13:50:30 +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=9F4n3J4a5gRM6RbUWE2kF1TA5xvRROfm+UBc8w3LdLc=; b=LWS2aLg890u81A0t9+FR7xdOsIRo1EYUkm75iQQfX+7QR0hocdggZQB9nueN1W0hHxAq9IEx1cGu43VVsEwp9WASgbz3TZCNGExi9s+EolVsNN7t6ZLhmghW8oWHUrVXq37XOx+lWBaIMAxWsFjMA9v/U+YBoZFmZT48JyH8XPQ= 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 BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 14 Jun 2018 11:50:27 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Thu, 14 Jun 2018 17:19:05 +0530 Message-Id: <1528976946-14396-15-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528976946-14396-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> <1528976946-14396-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: PN1PR01CA0095.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::11) To BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 38507bb7-7bca-4715-310b-08d5d1ed06d5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4898; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 3:9LxCslH+ByVnzi9J7XiY3/lQg9nVR2yq7JciDWoXOx+Y6npcV+ls7CDIKbMo/xv4+BXBM6Ok4bKp/lW94YfC1bYdZ77+yvIgrL6Axc8GC71+E4esrD92vR1E3xImAEZoxebxARKTPGs0lA1pGzsGtTAovovYiX2ISClinPvuMW52+3DcQzY6P5y9CRVaEIAI/UkznU/EdZW/tUZlOgoodmnhCT4T/XDyOm4tzrIZ0z/FNSKa3C1ybWUBL2ziNEIS; 25:jmmfsqUuPtDCy5CT+x9soCll7fynT8sNK4IXMsaxw22HlLzmYZYaNPc5IGbAhYlj0vC5vT/iJxYuUwVe87TzGIbgB2YZZ3Ij8JKmvI0CkS0z3EL3VLUz4lT3uYiTeBjwrwtiTKw08aO6PWQ9u8yYdXB7XmdDrH/YhwYI43jiLpftqeJWy711eZ0egv393/Vd/IU3m6BD5yfpFwwfHTp083rgjZo8y1fryP03FOALbIi0XLZnQXK9alXX/5hariPsUZFLbVNJ9QDQcZOpMeqEVoOVrhkhpGoLeox2/oLEG4rEV2xwhaPXUTz2+cjtubT0JWal5yE1+SgMHVjTwEEDhw==; 31:RZxPVDivtWeNwxiOAkEyYmlfhBaBDnUWC8FVLjjosiEQmbvWsHjJ4as5pxVspJehO8MTDC2DS5pQhHMqzU1IErvulN4qI6AtnFMpe0aDB8P9eYHkXyuGc1PapRsKtWJdSsH5Ll87jBJNjTBl3xxffdez5j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RVS: 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)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(93006095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4898; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4898; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(376002)(346002)(366004)(199004)(189003)(446003)(956004)(2616005)(305945005)(6666003)(47776003)(476003)(54906003)(44832011)(53936002)(68736007)(486006)(110136005)(8936002)(8676002)(81156014)(16586007)(316002)(81166006)(25786009)(4326008)(7736002)(6116002)(3846002)(11346002)(97736004)(36756003)(106356001)(478600001)(105586002)(42882007)(52116002)(51416003)(26005)(16526019)(186003)(59450400001)(50226002)(66066001)(72206003)(6486002)(2906002)(55236004)(50466002)(6512007)(386003)(6506007)(5660300001)(76176011)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4898; 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; BN7PR07MB4898; 23:2PK/MRI0fLmh5g8z4AOnFopRZ1A8uv621olNvPJ2k?= =?us-ascii?Q?iYHc7pJCO+DpDUi2LGmqkGskDch1l3K0w9Y93OgI6LZz2BcEYCHXSzeU5CnC?= =?us-ascii?Q?4YHlfqbICchNMeKbsdwOn1ooRr7NW4bsmAkloDquNod2stLLfwFu+6Yh9Zlp?= =?us-ascii?Q?CWRIwkvH1nYQrChCxEvhytCMg4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KU3WIKQkRNAyR9KWlSe2EB1TC0Tv1ZUMjhx76pI8tvYVKjS7E7NwDY6y/YFOK9J/a21mybuMtauesa82GsykOCPdxZFCnuNwVzxFPOIX6Zc865wgdrCiebNJh0ucd6Z9xV6qvSxmNZ/nLwk=; 24:qRpTL4HxjIxCmwLdgZQ9wHnA0QSr6RnaJ6lEbN+Etq3XC621BLTLbdKV6CJXo9Cl+A5jq2oPVihIsEHw4heev26wJReh2QVCnE979KQKjME= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 7:TDmrna9E7ztI1Ao4M/qcKmVUxxwXbscNSXcptcIKH6YBVxElagmM09ysG6dLx5WQADTWeNshOXddTIQyDQkKC6nuX7IKa7VPRr8TdAo1ktyszvv91G8PflOZGi7QAIFnlWfPU1GQTpjeLqRr+zPcl/zIcpz0G6WBaOYRemqGFb2+KVLWq61EiwEfgLk780KHinbPwnzoP+E7Tq+vypfg5jWABwYCdvUat+tCHYGK53CBBLskiFMPlTio4nN4ubKZ X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 11:50:27.7269 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38507bb7-7bca-4715-310b-08d5d1ed06d5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4898 Subject: [dpdk-dev] [PATCH v1 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: Thu, 14 Jun 2018 11:50:31 -0000 Following the convention of l3fwd, using fprintf instead of printf for printing usage. Signed-off-by: Anoob Joseph --- v1: * No change 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