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 D94FCA0544; Tue, 11 Oct 2022 02:51:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C615842BB1; Tue, 11 Oct 2022 02:51:16 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2079.outbound.protection.outlook.com [40.107.243.79]) by mails.dpdk.org (Postfix) with ESMTP id 04B9342BB0; Tue, 11 Oct 2022 02:51:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QfV0Vgyc2NwiM/oXjxXb0OGmAHfw7KjdFkHWG2aq027a80L7sGzkOAqnXdRjuGP+TlNiQZKc0cn6rgj1EsHqVLrfyI8ljFumtzYshE98Tqi2MBOxVTN9d6PfyGw8l6E96qxMBDZw/ppFrGj4pIXIK4pfTUg2b/hiH24uGxOGA4UMXv6G3i6Z/D1ihPD3qyh7GZm6fZZDylMSCPl2esoRODVKKWsaoBdXWHXgvucvNG5WIiGtkXQIRyeecM+6BOLJcv0RgF6nq3LfG0oaKprfiy6WBVHKttzUsFyJZbZlJHYXuThL6fw9WaOIU9iQsLsW94vpECRlT8DQE9jr+akofQ== 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=2CXwDgXKQExNPERJKMEc7MExWRkKVvmTzBk353Hx568=; b=VVq7x900J0N5GDaQiKh0ASNcq2bR6gRtJdNKCI3NlLL0Lba0/M/wfTjZFawvStOZnh/SBQ8Wn8h8JKZ1zzQ38ZgZj10z76qHG9keDdHluVWc89NwYpQQ6rSAfyk9ag319hELMTQM4Pt8WG3PACdmg8m979EyYg/SrKJHGMAaD2ZWGPEElYceIGG3p51rLTfpN/oAJeYxBpK1UqE8GGUCJ74H/bIs1CQ9hSMMOi/wGx14j5bDp6vAAd4qgRLcq7s/SNJ4GR+MDeUGkzP4WNKTgD0f19afam6/CxAvXb9MMsrDxj9Vt2dfL3PRlG3gxdqlSxhwyV0NtICPtx85Qfd3bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2CXwDgXKQExNPERJKMEc7MExWRkKVvmTzBk353Hx568=; b=5hW6O+ScqeWl0yAGgTSrAiusj9OaZjUECKqu5kAwJ6gLVk+EtF76SpMgMFEHKQdm8O4iUa8bqJqDuwSAFzNlo+JXPfEKHLNC/X+3wy2xTV8yAy0OXxtglatLY7C1yE+6K4OGjf5m/xUuwc4IHTWYTxy+G7zHzv9D0LOdKsJ3ouw= Received: from BN9PR03CA0392.namprd03.prod.outlook.com (2603:10b6:408:111::7) by PH7PR12MB6635.namprd12.prod.outlook.com (2603:10b6:510:210::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.32; Tue, 11 Oct 2022 00:51:13 +0000 Received: from BN8NAM11FT112.eop-nam11.prod.protection.outlook.com (2603:10b6:408:111:cafe::1) by BN9PR03CA0392.outlook.office365.com (2603:10b6:408:111::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15 via Frontend Transport; Tue, 11 Oct 2022 00:51:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT112.mail.protection.outlook.com (10.13.176.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5709.10 via Frontend Transport; Tue, 11 Oct 2022 00:51:12 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Mon, 10 Oct 2022 19:51:12 -0500 From: Andrew Boyer To: CC: Andrew Boyer , Subject: [PATCH v1 03/35] net/ionic: fix to set the adapter name for logging Date: Mon, 10 Oct 2022 17:50:00 -0700 Message-ID: <20221011005032.47584-4-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221007174336.54354-1-andrew.boyer@amd.com> References: <20221007174336.54354-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT112:EE_|PH7PR12MB6635:EE_ X-MS-Office365-Filtering-Correlation-Id: d13308d6-a8ee-4ae0-341d-08daab22b208 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9OmNSuZ80fTOO/Q+tohajAA0jsjLOTPz/fE9kMMnbo2RB5N2WXbXd68YgWl+95k4z9+tc0u2tq/eu2+tvs2ImzVnx0QK8rozjzBB00tokBrHcMO+IpKiXe7f+98BLCACs4u4dqexIEcsG2FpnpMnSjmxdMxKZRQVZ/VhaXxbbrd7zrnU65flwGHv8UnMwioX09GmL60L1nKFtSOe0v5dQQsaR/5igMvQvRNIYJqUm16pjKOLcVp7XHd1wmIZO6t+xVeAmwXEkMqW+S/op+xvvHW/jtaIKhfGkGG6gPshq+DARunLhFA7PSwHGJTdUYpVH6d5iJzM8do7RWp9LPVRK+sjQd8cXrPlNCJjc3jQIHjQgTf30yr7FtCY0y+ucN6JN+rFeL6h8huCwY0hPynfrAxs/cP9LdiDjVo/P4nzkFlUdJrDf+w8euxVr68JOhoIK23yqrjTQ1Sg40JTAldSw5tnaLjaUN5X0VA0EIVQoY2sOAn0AlJzUxf4E01HTHhUDrYkHg0vYR037M4d1UeLBBO9yt2NUPfXzsz3fJmTOGsLNO8Pyv/4WxRNzNi0l+8Frl6rSrNLfIvx3HcujB6B+bfN9Qi+vKzcNMn/FczbnfgYYVBOwME+TedtYeBDLWC6iJ/w3I+0joH9YAQ1t1AdP0e35ysFpIEcn45Z1VH5r5ujd46vbldKz+zNIbgq/dIjWodS9NyvY/0moXf85CjXmMjfbXy/qRdpPWKRdG6LA2Bv1lja9JGgprqypGXubyuV//NDFRpc0HdnfFln+AB+2HhLAWaZsR6UFO5AhOJflgYCBg1ygopbbqiwseXZO73n X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(396003)(39860400002)(346002)(136003)(376002)(451199015)(36840700001)(46966006)(40470700004)(70206006)(8936002)(4326008)(450100002)(40480700001)(8676002)(36756003)(86362001)(6916009)(44832011)(54906003)(316002)(4744005)(41300700001)(82310400005)(2906002)(36860700001)(70586007)(5660300002)(26005)(356005)(81166007)(82740400003)(40460700003)(336012)(47076005)(478600001)(1076003)(2616005)(83380400001)(6666004)(16526019)(186003)(426003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2022 00:51:12.9997 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d13308d6-a8ee-4ae0-341d-08daab22b208 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT112.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6635 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 Otherwise the log messages will be garbled. Fixes: 4ae96cb88fa0 ("net/ionic: do minor logging fixups") Cc: stable@dpdk.org Signed-off-by: Andrew Boyer --- drivers/net/ionic/ionic_dev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ionic/ionic_dev.c b/drivers/net/ionic/ionic_dev.c index 43e9ca3de3..5439b99b2d 100644 --- a/drivers/net/ionic/ionic_dev.c +++ b/drivers/net/ionic/ionic_dev.c @@ -55,7 +55,10 @@ ionic_dev_setup(struct ionic_adapter *adapter) ioread8(&idev->dev_info->fw_version[i]); adapter->fw_version[IONIC_DEVINFO_FWVERS_BUFLEN - 1] = '\0'; - IONIC_PRINT(DEBUG, "Firmware version: %s", adapter->fw_version); + adapter->name = adapter->pci_dev->device.name; + + IONIC_PRINT(DEBUG, "%s firmware version: %s", + adapter->name, adapter->fw_version); /* BAR1: doorbells */ bar++; -- 2.17.1