From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA7CCC433F5 for ; Tue, 30 Nov 2021 14:57:52 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id F2FA021F1; Tue, 30 Nov 2021 15:57:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F2FA021F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1638284271; bh=Fkt5/xZ4N9+Px94m64YFl22fCxXL62+obtMttzrJCsU=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jjep1JHJZtbQCSlIk/OlEuMd3nltliESdrozbAaopKUMWD6FfYLYTNuCiQlYQkbFs 7+8kzhWCaZkT3RiJLYUdQvklfbL9CMBGb2x/rISG9llpTpJd1oz2qOXp1coOEgNmpg 50Xmgg250ePOZ1nbZzU+bVRfz1iuZg/+iSMAa9dE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id AE87EF8051B; Tue, 30 Nov 2021 15:52:11 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C2096F80529; Tue, 30 Nov 2021 15:52:10 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 993C4F80524 for ; Tue, 30 Nov 2021 15:52:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 993C4F80524 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ll+BQY0V" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 90A9EB81A31; Tue, 30 Nov 2021 14:52:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49A25C53FD0; Tue, 30 Nov 2021 14:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638283922; bh=Fkt5/xZ4N9+Px94m64YFl22fCxXL62+obtMttzrJCsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ll+BQY0VFJq5lHBP+ragPYbEb3aqmEljlREmZIz/Nzc3rvcBr7OC0PLAGR22uGyTs q5A+aoJ8jxqqN1nu0P/FoZmbdAxHvmn6cXZ9akjTpLnRK6+gUJhmuhcPZNuy0QNrX1 ukuy6VeKToUnrYmzdeWdpjS3gT/4SMOHOMWV2ain8zxSSC9nmaAADx6rIQEeuaGObV bwidhfH5z+guwdnRWp9RBF/CmFDbb5RGCjEWsyTjNOWldUwOC3g4Ew4pfJz+/bQLST /61e3+ZQl5eJR3S9rEXwrHtTbgrj2rXf3+8QCFkwebgDd0n2LTSF3vZWHGI/W0AC93 5la4r+55gY7sw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 02/25] ASoC: qdsp6: q6adm: improve error reporting Date: Tue, 30 Nov 2021 09:51:32 -0500 Message-Id: <20211130145156.946083-2-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211130145156.946083-1-sashal@kernel.org> References: <20211130145156.946083-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Cc: Sasha Levin , alsa-devel@alsa-project.org, bgoswami@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, Mark Brown X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Srinivas Kandagatla [ Upstream commit 0a270471d68533f59c5cfd631a3fce31a3b17144 ] reset value for port is -1 so printing an hex would not give us very useful debug information, so use %d instead. Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20211116114721.12517-5-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/qcom/qdsp6/q6adm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/qcom/qdsp6/q6adm.c b/sound/soc/qcom/qdsp6/q6adm.c index da242515e1467..246806d3bcee5 100644 --- a/sound/soc/qcom/qdsp6/q6adm.c +++ b/sound/soc/qcom/qdsp6/q6adm.c @@ -390,7 +390,7 @@ struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, int ret = 0; if (port_id < 0) { - dev_err(dev, "Invalid port_id 0x%x\n", port_id); + dev_err(dev, "Invalid port_id %d\n", port_id); return ERR_PTR(-EINVAL); } @@ -509,7 +509,7 @@ int q6adm_matrix_map(struct device *dev, int path, int port_idx = payload_map.port_id[i]; if (port_idx < 0) { - dev_err(dev, "Invalid port_id 0x%x\n", + dev_err(dev, "Invalid port_id %d\n", payload_map.port_id[i]); kfree(pkt); return -EINVAL; -- 2.33.0