From patchwork Thu Sep 26 09:02:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 13813075 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011003.outbound.protection.outlook.com [52.101.70.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C54F208CA; Thu, 26 Sep 2024 09:03:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.3 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727341400; cv=fail; b=PFyuQemHEtEekyBkNrwYfw5UuLPYwfKDUIrH8KHItatEO45wwMXaT44HwkxooDmGljdZkR8tH1SKGjQbWwVqBHmWzDJSx1e9+RTKNP3qHco4H2Wdk23Qv2mcPtGgF6GJe0ztUOxNhofhuP7Y6gpkQgI6089GpEp3844ik6oRpm8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727341400; c=relaxed/simple; bh=ootiN2LTWWbeihhdQUVdCF1VM+mny3+SG9L6h+dshSk=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=LTsVtsqBu05E+6cRofp4W/grzPU25P6eXg7SQtTCdP+9P+KLtAhEX0GSM5azWy3dF2ShpwO3DLbibctCh1TftWjkrHb62g4ZEowDODnebEfiD9rZV2M2/5LgWi4sBd+XgfP7ojbCiNjzCo2ladZAQ3eeS1u2PTbt2NwElgR+Xks= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=XyAlFe5K; arc=fail smtp.client-ip=52.101.70.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="XyAlFe5K" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YHgH+ZqxSuh33B1xDsowwmTRWNrbF67NLzo1JbTICMmK663WGxgcNODYyl0YJ8gyhXe+F37N8XZ6mPBK15tOgnAHfwvFejaaKmoii9vJoqA7xrYvPqZJfGQRyydkTVlTto27MOT2XsuGnQImXz42tqKr7UNDjNYpRGXEUqtWPJ2c7pT+JchH64EsnsvB0UsMxIixDllAuzASByhUyC47XLFIOIqdIzharg1/ClRQmftwxPUiFA/lIsWgvddRGXz+IYnVy0gUlaJuECSjSrh1HvBKe3w/XHc7ivh1ngy0OJrRB2/4GpUYL1k0xgtpCECPvH4l1Y4sJ7buQl3fMr5/7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=h5reBg9mlys23xscMX4L7pKjIdvqgZ+x9V+jgATpCDE=; b=XCkSIgSOKv7gt9MF7X3CZt/FD+cDgUdDu7Hvi61n3S9OqA4dqG/Pb3TSQkGcUgk0ySW6xoxMP/Gfzr96uagox7Z6EJq0HZAmMBsM0AaXGHCj5IwOt43qcj/iKZn+rlJiqGZ2jotVvm7j/R15qXgoiVK+0yo4JbHe4Mmyw/LrA6erdvSfcT6Wjs2P1KDMzZmWf02eJzWK2fwvmtcJYeOGV0pYsPHMOKONRNIdGQKPCnHXiGteqBiMnuW1zhrC25/9LRk4DZujT0ky8GLChx0JYFOgOTXqgKGtDh/vh31qYQtntGBVA8GCLR3dYQ1WB+jbaDqQEAQ7Y3MPtMNBlavKyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h5reBg9mlys23xscMX4L7pKjIdvqgZ+x9V+jgATpCDE=; b=XyAlFe5KyqPzJli9kh8aHUMmnpS643wnoyEFgSht5SalCO5CXoJwH7QtoR9jy9q7tw6mvKXCrL1VImGSdBsuYmdrtEGdX9FFhJOKaCD/4V6owj7wMsP5Uakh9yqDTmVpFEX+ieIIHiOg790Jw2aN7xWSeilbFxXs+gIfq8+Pa00RkmTMIWhr4eph+Dxnfok433wcKoIdaU1wUiB9smtfn4oBwC7eb3zrBZl3ARE2zJDxD53yeNekszFuNldIu/IKJ9FS3Idjr4RAR1hXV3HOFEJGxXVkS+B1nq2ZkzbVUN3Rbh6xLziC7cA2ESZ1DwW1xO4FvLTyBDDxqsg8M1UQig== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) by AS8PR04MB7670.eurprd04.prod.outlook.com (2603:10a6:20b:297::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.20; Thu, 26 Sep 2024 09:03:08 +0000 Received: from AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6]) by AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6%6]) with mapi id 15.20.7982.022; Thu, 26 Sep 2024 09:03:08 +0000 From: Daniel Baluta To: broonie@kernel.org Cc: sound-open-firmware@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, peter.ujfalusi@linux.intel.com, ranjani.sridharan@linux.intel.com, Daniel Baluta Subject: [PATCH] ASoC: SOF: ipc3: Use standard dev_dbg API Date: Thu, 26 Sep 2024 12:02:52 +0300 Message-Id: <20240926090252.106040-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: MI0P293CA0013.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::18) To AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8247:EE_|AS8PR04MB7670:EE_ X-MS-Office365-Filtering-Correlation-Id: 89b45ed7-d890-491e-087c-08dcde0a0a08 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|1800799024|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: Lsp2LplSgNIL+UmjN0oirtPqZ+64pvsPX/pS1JnpsFBWiVaDteIr6HsKiIqRMFrYEQyY+6NdX/dOQPbR3j7hKSK6oCFwYfRZwQncdJzJBUr82N6LM02tyX0vi8oovvZIZYFch15N1LC+AUI0kCYxiXRJgzhqBVw5caUu+msdHX80QLc9PKzfLLKAbgkn482TTgVuD2bQAjYht+sLleVRSnIc+OzyaFXt2pZFNOATPROjgMGpaAt3OwhthnUkAkDYR2UEe6MyAhGlUCQfp3oGjZXPaNBTENMAGCQ5Jj2QE2gvgReoM2uIws/p2E2XH5H0stretH/3gtqPUKB5DmwKluDhUolTSFOs1DiNA8dyjzdObSM2gUUEYa/zocEDcDwVtXKzySQhMjEteKDl13i8dQPBD0gZGbu7kZEUWXbHXin15a39YrPB5US5Aubu6IsFd1s+m2t8SxhxmBQ1pIQ2alDNCQ8ijRCwOeCV4G5KptTzzm5uLCRq4LPf43bYKusDpNoSGwNO5JTqw+qqrDw/LRRK43zGinK5bmnh1pTx/DAr5urKBwSSWy2TinYW0VRYJSuD48sRIpyGfw7STvsBn19u2NePYw3k4BPE8TjtRJpqhQ/ldugVdww88vDY5BraA9qgIQM3Q6ex+AVkrqUhZEjNVyn5e6hOp/eYkDI/wagGI4H4rUuQUue0lJPJsLk05jW6vQ6fojKFrlf4wwpgWyat5uSCzGC+adCmOFOWQoxQyQDk1jDcCVtMTbUHKQ3O+zoZkUVG+zJKeop+fOUVyEWJYHEgIVt6lgcjUp32EVwsODcaRrD30AYUex6UP34n3dj4CidZQkurWs4L/+Z8Q2ALKYR+y8t9VWpytZayyBWKHC2XoAFkPqdgnSzwcQ0f5b2+qrj7u6x8z4t7XQbMHy0VPVWpeyt1x+LDyduFUQSnb1LDntEIJj2lpCF4VpIOQX4oXWTFHKO5s5hPOlhWpwO9rxhPAkkEfaYzPIGc/dxYx4BfF7rY1ssgsBNgoaObYwty7kDxiY4LYMSRhqrxmxnOD2Eh5nK26s4e8Fu+K2ovA2hvqWJlpKginFopGNMWegRiRqMqYOUp0FFxHiL1l/LJOswvsWP/eAF8KL86YjY1viAUvHW4/0z2/VpI/dR4t6RRtML0lY5l4PAJN3wD7zflTPr7FzOa9Kv+YjAhlQaj6GCMdeQpu7nc74whGo6TPZJx71NpmbpkN+R3bn5gCUiKFEpwErkcuWHSgXVhPg/lF6dgPCrdIL8ropkJ2RpJYdXZvfdY9u7vt7q5JoBprhr6EMvpfIOcms4aKCcHUX96TOZ7mmaSYjrtsMKf/v0cEm67TjTfJaEBhZRsYm7+SO3SRg2rCQS8FFEjihoaRSy3Wq++npHTZp95GYtHAOX6ykXAaBfS1w27vAlnwCQwpg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8247.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(1800799024)(376014)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823bhy5D7wKM1PonrLpOTW9TT2clBNpAnvWZGEWYnf1LSMMI5bp/VZ92lRpJ3Be/FqPfcoPjzXaKvoVhLpSONA8YvdF104u5kKkCDNWjpmVLaIBUAw9alpxXKYLxfM+fW0ECJiRu2CRFa2MIh8T2xj1PN9fuel+aljRadvjvDkpo+qmEB6UPk2Y1QzuoL6MFRasPppLQJ38gLU4/cYuoCiU3yjoycqjQKAIuqRMlUd3yFq1J8DEmb6KZrAu1TqNdrEUt5uI6EYq5Jzs9ZRcx7FYYAq+Z1aejSbVdR6LT5t7aGadIQmAxYDsV8l1gTEeQtGS9q/o5KsF0UPN/VhtFZne1eZiKRtt7AwnRq2RWo+ogwmmOjjTxcu5ydraxIwtKNThH6jlTYNdfy2+/Ec8JzBM3SFLeopmMlkzcYJa6iTPYedsAVme+cF30E4Fj5uV3V05IYZlKtZWtdKz0NiV03VMgo62cWlfqYq4aGL48qO9iObxlXOCkwy0L8f3NiEmu100c032weUBv4UwvgF4E+ptNQAhwSVEBvzYoEBAJwY6YDaQnt5TBc6EtkRWB7GtgeFn3sh/YhkL3V7HxyA0TXZUJErJftyQLPyP2RR5xR1v/ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89b45ed7-d890-491e-087c-08dcde0a0a08 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8247.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2024 09:03:08.1302 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oay3uKG1aHiwRDSGTVvbHIIApkW983Bu6Lf/BzyjaQ8iLLUd5uiXvxGRjcV7KcGgMIRsxYz5nNjhusIs8WtJLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7670 Use standard dev_dbg API because it gives better debugging information and allows dynamic control of prints. Signed-off-by: Daniel Baluta --- sound/soc/sof/ipc3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/ipc3.c b/sound/soc/sof/ipc3.c index 83c22d4a4830..7de5e3d285e7 100644 --- a/sound/soc/sof/ipc3.c +++ b/sound/soc/sof/ipc3.c @@ -226,7 +226,7 @@ static inline void ipc3_log_header(struct device *dev, u8 *text, u32 cmd) static void sof_ipc3_dump_payload(struct snd_sof_dev *sdev, void *ipc_data, size_t size) { - printk(KERN_DEBUG "Size of payload following the header: %zu\n", size); + dev_dbg(sdev->dev, "Size of payload following the header: %zu\n", size); print_hex_dump_debug("Message payload: ", DUMP_PREFIX_OFFSET, 16, 4, ipc_data, size, false); }