From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0064.outbound.protection.outlook.com [104.47.36.64]) by dpdk.org (Postfix) with ESMTP id 2EA2E1B4FA for ; Wed, 11 Jul 2018 08:08:26 +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=puwFSNeE7JIfAFZClEbSwkYfi5uyDiStkF06Pkt36JE=; b=JJ4mAqjkzg1RuquKjS/Uw+QXNVvrLmZa2rtZQDskzhbJtrMMhi5Ko+wCkobgCDKPzk+x8ZodIHeumDMVWBhmBWDupNutwykivUNaMQK6FwCeQsHUX3NX7lDn4F1tAHx/VjgD79h8gcdr+vYdTBfsH9j83NxssmWXGjgXx5swanw= 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.930.21; Wed, 11 Jul 2018 06:08:23 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Wed, 11 Jul 2018 11:37:27 +0530 Message-Id: <1531289248-20025-12-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531289248-20025-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528976946-14396-1-git-send-email-anoob.joseph@caviumnetworks.com> <1531289248-20025-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: BMXPR01CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::13) To BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9ffa6116-3e51-4a10-c54d-08d5e6f4b66e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4898; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 3:OhxSm7/aYRN6zcxilNsvWNLIosDDEe4dmhQnM4YAfUWW/zyqdLdJOrhJtpTMeTuKgtrKIbZEyw2HXlt+u7/YDZvMNdljWk1llQKmZ/S+WKKrVWt/qqPttvIvGhz3C0WQ6oWMeyKvd6oXHSSY+8JEhQcgpLoFIrVp6q/zQC1hmC93TxPSPzsQeHkHU9pkoUtQA/MerYxV7I+V/bxd/Sgo6MgNLgH5ADZFihoO6RWapr/ceuU10w2l3o4wN5TuKUd9; 25:RBbJkElQYiHXzKSembRBLTJ5jY0/QxfN3TPPfpazZXcriOpRDwsK/9L7svXCsAH+UwjjyAmag+5XiKmvO6W3vEyeJEYSSG7p6GwCd5CN4l//IMKymoqRd9S6aq5qKgdk8wIHiIetmGobCtCy4c7YC9LJPHujy39HuGs3XohMn94jYPRHpvrcKIbwMDjGcChV4T+LWmVpdeQc1DurNRV+fEGfOjlaJUARebYt1Nvn/Rk4nRYZ3odNPyBMHhl7aAgtKdp9tWOjRjIOeWypMvBlfNzoznGY5DNxOCK2ZUikERO6gc3lXQjV7rzBUy2IW23HVVJ9BjzEiLULEyaIy4ZuXg==; 31:gjMMSI4+u1sCUyAdLTg3PbDnTEuviewbPo9PwuD7YQtfMZwqMP3sGXogv4TwlJa2kVq9kReOfeXm2PkA+DUM/Mzmaw8lFMES8kZnHH+2N/mzM3hXmtBgmzeEo6nWmNV7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wtAvQ== 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)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4898; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4898; X-Forefront-PRVS: 0730093765 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(39860400002)(366004)(396003)(189003)(199004)(68736007)(81166006)(8676002)(81156014)(44832011)(50466002)(25786009)(6512007)(7736002)(4326008)(6486002)(48376002)(8936002)(14444005)(2906002)(3846002)(478600001)(72206003)(305945005)(6116002)(486006)(16586007)(2616005)(54906003)(110136005)(316002)(36756003)(476003)(956004)(446003)(11346002)(47776003)(26005)(42882007)(52116002)(105586002)(186003)(76176011)(16526019)(66066001)(106356001)(51416003)(97736004)(6506007)(55236004)(50226002)(53936002)(5660300001)(386003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4898; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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:CHL1QxhZUTOxawOSxRkwJQSxjKoQDCd+GMeQegHCD?= =?us-ascii?Q?8+0z03J1LMkxt6+QpUL97o/qH2Tgl5bKfcZ2cM73PiIHbU/iREL2bGU38Z2S?= =?us-ascii?Q?ICn2SjZmacXjIfB6JePGPXC1PgknnIx2huhV/iBeBBuflz+qEUsCk8VzWUQZ?= =?us-ascii?Q?FoGnVy24Iu/oT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w7OOWBAU7brd7wCmTBfqEP8UpXaykh6fbc9tCx4wnpQk8JnR4rSGpqsZuBEOyPwXWHMeA==; 5:yZRKFIFPOgnqs1spFyiyYZ/gvgTkIHefPgC8T3DGHh6iqhndrka5ZqF1t0vSrzbt56lLuzT0Dfco+Mgt30JikhJUek531uenjBU1n5s1AS7ol1JvQe+caJMK78gNb3DbR/omK2m4d97leh4fA/qTy9Rsyiaq1MHnN8oaYtGQnzg=; 24:HOC7MXvp1ewzyV6sASx/Bw8HsE1syEiTG3XPq7t0vqoYQiwbIpH+52jjp/J3s09ipCswgx3Ivp9FeBJlwW9XWTCTOLRhHwcPpzRnKxB4I/8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 7:e9hhViVbkTCmHjuoy5rGJ5SM5RgzyIVcNtFldAhuxa6nV4MPIMYBfW0Jr8jaIhNP/KhWD3Im8wleiXNBDumMBuVkHsDecDygVczounEBmpdpNKX4wM09/aZPThngkvtF2b7dIMRYnOp8nLdUj6t67GEQ6kBiM/Y/ODdRZupwL3VshxjmwvEJTjvjxg32SKFCd80LFheJhotFeD/bAtlTlWdOAXqrQukqByQofRc21h/iGr+9PC9HdNydyR8piOBi X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2018 06:08:23.2191 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ffa6116-3e51-4a10-c54d-08d5e6f4b66e 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 v2 11/12] 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: Wed, 11 Jul 2018 06:08:27 -0000 Following the convention of l3fwd, using fprintf instead of printf for printing usage. Signed-off-by: Anoob Joseph --- v2: * No change 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