From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690065.outbound.protection.outlook.com [40.107.69.65]) by dpdk.org (Postfix) with ESMTP id DBB2B1D629 for ; Thu, 14 Jun 2018 12:19:33 +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=rrQLta6B618rfihPc9NvgNhT/HRKBeeA3KyVewYLVeo=; b=eeUSSyPKV8TYq/jJ7Gowy/ahoBQBz6O/Xx0q2ysTWtauCt4NIC3BjkMnsuQE/bDB2ZI/s1jkUFPcAmE2BwknB3zxsshs4BZwcwQ4VePxLIl+tlMAPhSS0fijoYQoLZbL6s9QeVf/0sA685UN1p8eHlPOVwyIqqAkSdDxunuoUt0= 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 BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.19; Thu, 14 Jun 2018 10:19:29 +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 15:47:56 +0530 Message-Id: <1528971477-14156-15-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528971477-14156-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> <1528971477-14156-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: BM1PR0101CA0031.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::17) To BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bed22bc2-f4cc-48fa-9f7e-08d5d1e05216 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4902; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 3:wci4NRPTRhRXul2duVEZjIu0vqYmK6kXdmQjvbDnBnNBtut4v20IvILLjBPhbXhu9uTlAu/ENW/eztKbaxyrFcNaW9e2ZEi7qwkYwgiASEz4Q8Tptj+4E6Y8zMitCl8jm94EUJjThbDd66ADXZbSTb15clyZQRdK6JeEoTOZoi5KJ7/3+tfCVlUEx610Pw/fo3PD6o4InDegSwehl4dwLyLkAqqZMyzAgc9hEyDwYYSPZqyTIcw0HXlmrtR8Skgo; 25:TkFbZkqa1taKLW18hjbRSEBerSHsQDIeMMQpO0iQyL/1T61ibN4rGxUgYRJ1upB9vKKzpQhmf10mKA2S7DwfJFc38l44/tn8AEJdRLAt7O6zYzv7w2Rnn1ikLfaXrHjUzCVRTCV4lrm3WMd3BAng7QkTl49DwEgvQpyVV+2QJXxykceK4z/BwUTyJus8HflLqLaNxnmqPK79WHcn+yT26vDphwdmEbOaE8J8OiPxxYydymEJtloUn3R5/pyV4kQ00YpVesHYm0ff/NkizPMct/frqWlyybL1W6dH6cTiJ4MSKlRd/XrcCLQPzJMfSZ7ozW4PM/TTJ1QUT1evSB4w3Q==; 31:bF9cWcPAeXSyR6/fccGm6gWlRpoezNopRDVQKDmLMiqgmQh+skMyBdKhTCLEr54D0bJ8mUbvEkIfdaGpgqVxgi+YuX51VBcOyDr45QGeTiV8vZC7qP5gzhPFHTbHdLNQU+nRYPGfb43fsncna2gtDE6z7GbP8x+IgMG7kr0lWqCddpUKGywpyAe2BW0OZSMFcOTeLHzOgyEeMLPpeunD9U+XeIwNP9Hb29R3wd5ahco= X-MS-TrafficTypeDiagnostic: BYAPR07MB4902: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 20:pIPz5UW/VNKaypfQgm5foG+zBvinTONu33JbXnXDVez3SC+3pC1+CGcU0HENZYFssivPJsSi3kzPhMSl84NHzf7U0b3a89RzW0rqhHZ9AHjIgfPBygD0p3ekY5jJYczL4wvh/rN57zytOV/E+XbkiNzlapYKspvdNjqYamCLNOJEbsjs68xmYznOvQnizCOwhadW13IR/jzjAMm98Jd3N++8b5vwr9OA6TQS62jf58XUB3Fh9gCsYk2ZvfDsu7eHP55++svyWVV/HMrgX3+KgElJzubnf+EFiGDeBIoEnp9DpcUS4x4scBSou3fOaRNS5uGQXNgAXTdZba/cAHxJm7GlIu/uyCT5af8mXxUwZEAUFj+QyHzgNDWe7OhEa4MbzXn/uMQK1F/yE9RiJtmDAfaOtplKq4UdYQ9makRIz6OeAliH1fP+Y2vYODj6arnwSGMRbOBv5+s0PNWnSsMvkPDnK3ZY0nWGWCV72neDdohSlarMJ+ySqehncEXzT2acKqCfGPSY1Is/EPbrgcp6hQEicNcJGq2KFyv/9x18/lDATUQuhJjPXNHrNt6udZXpiv8AoID4kstz8EJM1pSlr9Ji2G4EFJ/i+ECOkhcRF/8=; 4:fOHo/cv75S272+wgHc+DPdKDw19+OM7Rl+fl9fHsu5VUoSstgqWnq9ciHESEvhWj65eAYoNhC/ZvAOiN39fbfyX0VnAyjQ97grqGyDyLa01Q5rHrRa9OoSYn6EkBJR8rQvTCPKbKDoRaM3JMaRkWLnIFs0HHzGjj4iv2c4vCvuf13YmxxpvXkOslDCV65pRs9eyu7dOHhFcCEPoUwKIFPDrriWU5SgMOfe8yXX/zFKzXFMOr0XWEHARP938BAsh7Up+M2vAOgdL+2cQKkoz3sQ== 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)(3231254)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BYAPR07MB4902; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4902; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(39380400002)(376002)(396003)(366004)(189003)(199004)(316002)(6666003)(110136005)(68736007)(2906002)(66066001)(54906003)(47776003)(6512007)(5660300001)(50466002)(72206003)(48376002)(97736004)(6116002)(3846002)(53936002)(16586007)(105586002)(478600001)(6486002)(106356001)(6506007)(36756003)(59450400001)(11346002)(956004)(25786009)(4326008)(50226002)(16526019)(186003)(81156014)(486006)(81166006)(8676002)(7736002)(26005)(8936002)(2616005)(476003)(386003)(44832011)(55236004)(52116002)(42882007)(51416003)(76176011)(446003)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4902; 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; BYAPR07MB4902; 23:ITVrBAWtiWOyK53tFrRHZ/q+VZOLAGFvfFtiDbhsA?= =?us-ascii?Q?9XqRq9zo77o9MTPw5oULM3CyQGwKjdVutlhfqb1C8Jqq4J78z6RJE/yxqtGg?= =?us-ascii?Q?BPFapItbKeQIxRR54Tlg5Gs1WIn66FaKwATHjiSMpviLjZT3Scj7fhhk1MI8?= =?us-ascii?Q?F0IqzVyEZp4DV78LuQbh4yN272l88sbaww9w4EHd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FVwI7EUvDW3t9vmXFQ2I/yzyk7GRbytzl+PaRsBV2V4rEGgoM+O9pYsH1W/RuowWNLXIGQJZGfdNWFTwnm5rAnSRbQyl3AyIMDioKyvKM1q2Hwg=; 24:+NTMkKwIZPa2FaI+H9e44BoZmJvvcpE4M608i9wcJwnqwOgIkaKvLfBnpAB6j8+oW9nbx4LgzuGTAgiRgIORuaV9x/pvJY+nbYLBWNmv0pw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 7:pbBLs2/423NoCOP/M9yupAmTt7Qi85z3j31gbaLqaWnJAIG+bngiEqXHEIxU9RoPUVwMOMar2ywR9CF9o65FGzmm/xoUI0nLO39kFDuWfuU7/7LtAfynFsAElMB2r5A57f1zDq0q2ZA8agU1OWRmOucQnfivV7b2Ty5XvFok02PQ0KDxyGqE1BuBE0IhTPJPkCbirZGIWKASycJ2+6MTTJEkxp16zTGu2ImsVsutVsh1GwE27X4Dbd27FVv/50+4 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 10:19:29.9490 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bed22bc2-f4cc-48fa-9f7e-08d5d1e05216 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4902 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 10:19:34 -0000 v1: * No change 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