From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1E85841BBE; Fri, 3 Feb 2023 17:19:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B56594067B; Fri, 3 Feb 2023 17:19:04 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2079.outbound.protection.outlook.com [40.107.20.79]) by mails.dpdk.org (Postfix) with ESMTP id 3B6A64021E for ; Fri, 3 Feb 2023 17:19:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ZLnYdodzCdnnfN83XbNxtGiEM9jUacCs/RF36cC+xI=; b=Z/1koAG8mEfUcLRDL1pl63Bm0/bo9tTfT1FVsVKjPH7gYQTFN1rZgALLwaLZvOFe5uBdu3VYXW+EjSExEiKZpCfH+0vuZ5JEe3B6bkep7/kLzY69siU4nnX8KkbvpY013Uw+0Rdll2C+dwh1Sg20UW4hlwou21OKVla4qdp0aNM= Received: from DU2PR04CA0259.eurprd04.prod.outlook.com (2603:10a6:10:28e::24) by PAVPR08MB9699.eurprd08.prod.outlook.com (2603:10a6:102:31e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.25; Fri, 3 Feb 2023 16:18:51 +0000 Received: from DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28e:cafe::3d) by DU2PR04CA0259.outlook.office365.com (2603:10a6:10:28e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.28 via Frontend Transport; Fri, 3 Feb 2023 16:18:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT034.mail.protection.outlook.com (100.127.142.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.25 via Frontend Transport; Fri, 3 Feb 2023 16:18:51 +0000 Received: ("Tessian outbound 43b0faad5a68:v132"); Fri, 03 Feb 2023 16:18:51 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6c2ee12c8092f37c X-CR-MTA-TID: 64aa7808 Received: from 1d9d6b56daf0.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 61F310DE-E6E2-418E-86DF-75FC5AF047A1.1; Fri, 03 Feb 2023 16:18:45 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 1d9d6b56daf0.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 03 Feb 2023 16:18:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PEz+efY6Qto7H0MvX1owfJg+H++eVEGXIAmzaaVQdy9Qd1XCE9WB+zF7fRAnPyKcvv4XaYFbpWfs6UyUWqv3CRZMrT+9c6o9HHIG7yyzOJWHvHU0LAXxFkBQIhoujeyI7iejB7YdzIeqze3HT8U21AyVXInx1/Mq1q2tL5cvkWya5UfI2iAUjnEZsHIgL29cCHVGy54nRu3s/87ELPM+cqAF+eTFJxlf1hmQPhuxD3diDaqJEFgArk+540B1J5Q4MiX/gYFuZnvIhFPnyQWlaY6aFO/K2Dx01ByXeBTWPR+CWsotLT6pJWi9Z8Uav3JrIhyBfLugR13q1pDO0ifCBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0ZLnYdodzCdnnfN83XbNxtGiEM9jUacCs/RF36cC+xI=; b=AghvD0aZgovYsBiV4JrhG109bcyExAfZ8DzpDg1IYthRX0WrPrAMMVnAExl90RI+27kzije1qRfi7RtKJ1RPgFXCkU9wpCFch5tIe2YXshO2cS52P74Ksu6xqwnGiDndxwA4qhgk3iabicEE1GbI9tmJUBs/NYafsi9Wr3m+pQpe1/RDWpnpOnIOA/UulCM+MOEz96lyQG84tKbJe0oaH8oN7rh51AWD5/RKe/AvwuWGGhUjPSNPdQ2NGCBfKXega4Pak0zHuecj/hShTqAegVzxE3mwsO9vztZaJWSDDhXbQqB8WuJLtF5ZlQAJpqGBXC3iOnEhXVXapWyUsCSAUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ZLnYdodzCdnnfN83XbNxtGiEM9jUacCs/RF36cC+xI=; b=Z/1koAG8mEfUcLRDL1pl63Bm0/bo9tTfT1FVsVKjPH7gYQTFN1rZgALLwaLZvOFe5uBdu3VYXW+EjSExEiKZpCfH+0vuZ5JEe3B6bkep7/kLzY69siU4nnX8KkbvpY013Uw+0Rdll2C+dwh1Sg20UW4hlwou21OKVla4qdp0aNM= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by AM9PR08MB5956.eurprd08.prod.outlook.com (2603:10a6:20b:2d4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.29; Fri, 3 Feb 2023 16:18:42 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::f8c8:b4b6:c041:ac9d]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::f8c8:b4b6:c041:ac9d%6]) with mapi id 15.20.6064.027; Fri, 3 Feb 2023 16:18:42 +0000 From: Honnappa Nagarahalli To: "thomas@monjalon.net" , Nicolas Chautru , "hemant.agrawal@nxp.com" , Sachin Saxena , Gagandeep Singh , Sunil Uttarwar , Bruce Richardson , Conor Walsh , Chaoyong He , Niklas Soderlund , Rasesh Mody , Devendra Singh Rawat , Jiawen Wu , Jian Wang , Rosen Xu , Tianfei zhang CC: "dev@dpdk.org" , Ferruh Yigit , Andrew Rybchenko , "david.marchand@redhat.com" , nd , nd Subject: RE: no printf in drivers code Thread-Topic: no printf in drivers code Thread-Index: AQHZN9d7wVGzmWgqwUeu2eEixVW95a69ZicA Date: Fri, 3 Feb 2023 16:18:42 +0000 Message-ID: References: <3217725.44csPzL39Z@thomas> In-Reply-To: <3217725.44csPzL39Z@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: C4D7D491F5B1C146B16FB0D07DE543D6.0 Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: DBAPR08MB5814:EE_|AM9PR08MB5956:EE_|DBAEUR03FT034:EE_|PAVPR08MB9699:EE_ X-MS-Office365-Filtering-Correlation-Id: c5fb501b-630e-40c4-481b-08db060256a0 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: OQrAXtzcNhDp02YDsdWP1FUPfrB1yFbSyr72k+WAzUFySJGz7faotxhQW58KpPOLuN2S10gDV/7hGwWZOWatOYDJbGLZBodNtT8XR4fQEazwbN5yCybZPKRuFe7HWxQKFSrJD09HSE91rADlHREcSrI+d2wB7ea8WSMjIAlJG6ENC/UAs0f2Ol7wKNXBjT+4jG74Awv0qHiR247IL1hxxkBk1+2HTPy02X9w3Yz4MX+vuAd82kyl2sjCm4k2szymKvsPAF8ZR6Pj8QjwF8Djjos1V8JKcbKgIJLpFDRZLn7Vsq34nJeTTMRMl6ggoUBKe18BotaUWCqN7zZ5GGQoPrqBAxsUioVATOoMicftT/PfxsWVKnt2ITM0w5JnQUjCUCF7O9euj14FvMvtnKaiYl7bmQOM4sR6KHpsDYur9YWEYiK8zu9TyXBNXMJnYiYFJPyfRGMu+5XqwdxhYyBcjCqkz5OSMiGYSjJHYMGCMLQ/wcpp8El9S94EO8hc74JLkQwN93xuvK62s5nnKUXcUbZ3d7ZaJbae6lbVc8X7YsfitFccr+bT6wD47/+mmppdQT9HWBqbnFLkFHlP19odWseRAcKc2FqcL56+cCFchs81+nkpn6gbtDNRxmjSShK6jC7H+kuC2qIY/vpTq9ubf367+nXp0a1BHnSCmZqxYyC6klZKp4fP8cFP74TIC62s4JmE859WdlPtvC17G6qq3mJkIIrgEqog8TY1wuNCafw= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(376002)(346002)(39860400002)(396003)(366004)(136003)(451199018)(2906002)(5660300002)(7696005)(7416002)(53546011)(52536014)(66446008)(6506007)(316002)(38070700005)(9686003)(66946007)(76116006)(64756008)(66476007)(66556008)(86362001)(33656002)(921005)(55016003)(8676002)(4326008)(41300700001)(8936002)(478600001)(122000001)(110136005)(38100700002)(54906003)(186003)(83380400001)(71200400001); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5956 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 64a3333d-a102-4ef4-813c-08db0602510b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O7AanH2OJ+Pg8dy532fLMVIduoDDNbRjrwOoAayQjdQPTWuE96C16VglUq8MC1KGPBuiEQLcHQeMQbJUjzJNO6po1qKM2m3ZDBXzdkojMuebWonLpgtLfzTRuwdoix9YcjjsRr/ZN7LKfZGat6p98MYOVjc/moyz8a56XjwuX9GUHvkR/FLp2VkwQ6gZ1Hpl6ZNGQ2k0woEar4YFSBGfX1mLJi2QBn+wcGDF2Sq4mhxc4+Wzzy5ClV3pgTuihcmXYkTciGeNuXC1NTk7vezH61ibJC/6NyJONWDvN02ev1lqDa6UVCDbNoY85OxLSgyKZtGUmU5l+B785yjI4WHVabwjD3ZGzn+IOUYG7Z1jeIsIoajgA/EKyRJEkRXKHH5n5SQ1sYWCYkDk8nWMaKezl1rjvicg/36HjZx954wUVLet2ZOCWNf29gmM/MGdfqlzxAWbeVUC4VOx/iYNHPghFPTiXtHiO/OINrjZgkxfwW4jYq3SJ/KoSZocaLIGZW4sZ/PvEBz4c8ck7o/uExFf30KbJqlDuFfryasX8W3rvJeIzU1fvdcPIfSmh5S0xljB9df5raFq0f0KTAkJEI8tRiN3KxV0XAqN3Cv29gmVu80EJebrvyczblPvHjLRjjs2/MLKB6Tdq1/P5mqo+BisIEzS9lXzNRcijh0s0ijQV040cpAsQ+p8WS1dNSxNnf7yTS0aA9UOUeDGzmAUvuGH+kXD5Sbh1bDwOi+8VXzM6tg= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(346002)(396003)(376002)(136003)(451199018)(36840700001)(46966006)(40470700004)(70586007)(70206006)(26005)(4326008)(54906003)(110136005)(7696005)(8676002)(86362001)(356005)(36860700001)(40480700001)(921005)(33656002)(81166007)(82310400005)(82740400003)(316002)(186003)(9686003)(53546011)(6506007)(478600001)(40460700003)(55016003)(5660300002)(8936002)(41300700001)(52536014)(2906002)(83380400001)(47076005)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2023 16:18:51.5946 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c5fb501b-630e-40c4-481b-08db060256a0 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9699 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Thomas Monjalon > Sent: Friday, February 3, 2023 7:57 AM > To: Nicolas Chautru ; hemant.agrawal@nxp.com; > Sachin Saxena ; Gagandeep Singh > ; Sunil Uttarwar ; > Bruce Richardson ; Conor Walsh > ; Chaoyong He ; Niklas > Soderlund ; Rasesh Mody > ; Devendra Singh Rawat ; > Jiawen Wu ; Jian Wang > ; Rosen Xu ; Tianfei zhang > > Cc: dev@dpdk.org; Ferruh Yigit ; Andrew Rybchenko > ; david.marchand@redhat.com > Subject: no printf in drivers code >=20 > Hello, >=20 > We have too many drivers using printf() instead of rte_log(). > Please propose a plan to replace or remove the calls to printf(). > If no plan, I could propose one but you may not like it :) Does it make sense to add scripts to CI to capture this issue? In general, = we do not want printfs in DPDK code (other than tests, sample apps?) >=20 > Affected drivers are: > baseband/acc > bus/dpaa > bus/fslmc > crypto/caam_jr > crypto/ccp > dma/ioat > net/dpaa > net/dpaa2 > net/nfp > net/qede > net/txgbe > raw/ifpga >=20 > PS: printf is allowed for tests and dumps. >=20