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 EA45EA0551; Fri, 26 Aug 2022 07:39:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8013840146; Fri, 26 Aug 2022 07:39:20 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2136.outbound.protection.outlook.com [40.107.223.136]) by mails.dpdk.org (Postfix) with ESMTP id D30DA40143 for ; Fri, 26 Aug 2022 07:39:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ABQmC4z9kmIG14ERo+s2lrjOw00hdrmzL6KBO6GbqwSRQyynnZ5YygGyCOEY/aVI7y67iAw784cU0V6e/+pQepAuXhOvQU8hlwFk7Qh0UvU+CybqRRCYeJqB/KY7BKibbpsobdMBKvxQT7kjEttsAm/IZx80lu10ipaMhvqnq5FvQ1OXD4wlFLZo+sxPySz0y0CBDEERSDztW/Z50kjTyyFuXEE7cKTQ5Eb3Vu9Ux/Vqfe6U6xz7sBOqQBIKg6Vk/fSd88pah8BXLn2z3C1UggUyrFFCS276XxPzhyr3MzwqvndpGUZs4mJjhcwkIweS6KimIqnbcGf4rGAEcP4l/Q== 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=bS0OZ6oaSjDocWuBxrvzh27h5C5g98d2kM4abUm1Ms4=; b=NjzA+zZ6iNy8j9i08ulmsMJP06D0kbFV2so9K3JUDEz9KVShj6kwP8ckrmfOWd8u3ypSW+qlc7h+y5o5a16mX7zu5WE6yJw9JQsbuUSFkwL1wA5b7Efmb0/yq1nYeAMLGRYWLMFDH9afVUa5WZ7Qqjzsqf7iLgVr00jgzZtNBKkymrdQOVLSwQsH5IknQbcOqAs1fu3Tfvy03eADvyL4UWlxkej/nvOFZw6Ue0MKa5iiayRqR5/lWyzHuODGP91nnEWyFBon+Agr8rCBHcoJQrKI4QahEGNc2oR+NunJSwmXkvtmbDGN1DEE9S/UiJD6koawPezU0JuaBsJFKtKIyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bS0OZ6oaSjDocWuBxrvzh27h5C5g98d2kM4abUm1Ms4=; b=IZeabyRKDq7FbWaQPCo/ZbrpKNZ6w3CRICBDPq04zSFX15XFi7inzcDeKMejqH5mHEUFrsW+fvFuWfacnMO2bXnvIn3UY2L2Pg5aGGmCSkxdVgwP9RYM74op+tnu/2BV5cs92pAHAW+LXL/iSX2GgDOUeZ97pa05j4OgM1pNoh0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by BYAPR13MB2709.namprd13.prod.outlook.com (2603:10b6:a03:fa::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.4; Fri, 26 Aug 2022 05:39:16 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431%6]) with mapi id 15.20.5588.003; Fri, 26 Aug 2022 05:39:16 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, James Hershaw Subject: [PATCH] net/nfp: improve readability NFP HWINFO header Date: Fri, 26 Aug 2022 13:39:03 +0800 Message-Id: <1661492343-23225-1-git-send-email-chaoyong.he@corigine.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SJ0PR03CA0013.namprd03.prod.outlook.com (2603:10b6:a03:33a::18) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6f69ce48-a932-42f5-69a5-08da8725506e X-MS-TrafficTypeDiagnostic: BYAPR13MB2709:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GRS5PgVgmpJwMMKoS6q/2bWqaak9+qWYaQdOjxZoAiwUCzKjAGGYmq2iFYuDo5lwPGCMsv3pBzJ9F71CTSIdv5LyHf8W6tGBtK9gQDEhhppHpCFGX3X/0rz1x7X/L1sKAEtuchmBaf3wkK39jSjg5k3iqEOxTROpKxjIpbXcsjO37jOn+10tQEJMa1bhJpoW9TFFNMrBpDseJy9gobqedoMDnV8O/vbuXZo6AkHJmO7q1BnCaxHb3e5vcoLw5dRq5lJvtGE4/ftvTqEk3OgrsucA4X4d8ko2Wj0U+PiVHb8tFClzb9LR0+f12CChOLXxYcveWUPnX2dTMFcxfSazwBARRpHJo3l7WTzml8fSnLiT93rBT78JBrWKEgTGvDPX4/V23SDHPIbcZXgNQKGLEw0YmSfb92V+KaURlKq+3hxHI0/t3g3oGmgrwuG0olYuf9IuaMlWsmaAftuEb/c4V54FMEeI2Ov5n9iaZy0g+DCXnjgY77PRyfv/+PzvZkkivvIcZ3ANTnniCS/SiYPNfwWMux7b8IdzKrkc6E7V+/BZ3sJPyfLIBMfgswJrAZQcFDhDAcL/gmvUMCqH6rcmIiYStQqLIKQB8najR76wixLd/eD1fkuprHG/mO7YuOtvmEjQjb4PiO2niRj/LmlEhjTrX2wn6J4r5HelzIE9Ie//As3cIf4Z23Gm9vMzHZMVN5+Vrk88Hm/EcDVQDln24rj0H8QBYjVqEPIgOTlepREu7rzcaR4RNGi0wiFL0M8j7I8zmzjCmNEPrOnxmskA1koXrSrowLcxKWdfMh7xWJfI0eKC1U7FDTWQtD/mHEdv X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(136003)(376002)(39840400004)(346002)(396003)(83380400001)(86362001)(38350700002)(38100700002)(6916009)(316002)(2906002)(44832011)(4744005)(5660300002)(8936002)(8676002)(66946007)(66556008)(66476007)(4326008)(66574015)(2616005)(186003)(478600001)(6486002)(52116002)(6506007)(6512007)(26005)(41300700001)(107886003)(6666004)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MjNmZmVKcEZIYTZTdWVvWXlOVTRhQ29McGc1dFR0djRvUFJhYUlFZy9uUXJo?= =?utf-8?B?VWhGS3RnbmZZYnplUVUyK0Zjc0FzVFh0ZENTdEpXSkpxdFFwdFAydkVZSnND?= =?utf-8?B?ZlNmZjFndWIyU3pZSm5ob3gzUXA2ZTE5VUdSV1M5WFF0N2hmYWNVSXBGcTEw?= =?utf-8?B?QldVSTlIOXhvMU1NWWo0VXVXUS9PZC9nbDdHSEdJVVM4OFdScjExTTIyTmFR?= =?utf-8?B?THZNak1zTnZla3FJZUkvYTBHM2MyRVNuQXp0VlEzcmJPQ2d1RkFMem1qNHV2?= =?utf-8?B?dEFtZStrTXEycWt4MEJ0U0xMUm1mbFFYWHpIdDlqeTRuSFZsRFZCdTN6TG96?=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BWG0yWEZMdGx4ajcxdENHaVdQNk9X?= =?utf-8?B?QkE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f69ce48-a932-42f5-69a5-08da8725506e X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2022 05:39:16.3048 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ys200jKRUrYQu8QiDBC2ATIYMMwzorSqQqkvJ0N3LgcNp7mIdkCs3XKG4hdxsLuuHQd6RnMIK6zF6HuMvouMUwVhCDPDLLLlKplFcFiiUBw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR13MB2709 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 From: James Hershaw Prepend `0x` to the NFP HWINFO header value that is printed to improve the readability of the printed statement. Signed-off-by: James Hershaw Reviewed-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_hwinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/nfpcore/nfp_hwinfo.c b/drivers/net/nfp/nfpcore/nfp_hwinfo.c index c0516bf..9f848bd 100644 --- a/drivers/net/nfp/nfpcore/nfp_hwinfo.c +++ b/drivers/net/nfp/nfpcore/nfp_hwinfo.c @@ -108,7 +108,7 @@ goto exit_free; header = (void *)db; - printf("NFP HWINFO header: %08x\n", *(uint32_t *)header); + printf("NFP HWINFO header: %#08x\n", *(uint32_t *)header); if (nfp_hwinfo_is_updating(header)) goto exit_free; -- 1.8.3.1