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 7DDD5C433F5 for ; Tue, 30 Nov 2021 14:56:59 +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 AD67F21C0; Tue, 30 Nov 2021 15:56:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AD67F21C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1638284217; bh=Z/tw+q0KjEN4a3fO7zZN2tqAT9jijX8ngH7qsDGJvnw=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lXXYTxyEM2+Pt2KhjZXKb0pEt1PK5nNK7cSBmfVKaKAy+CqfKxYVyKANQy/lEzMsa +VCh1+ZufVr0MCV06bhBFJ3aTyHaIRJ19IVNHljaLPHP8rVsCaI5p8ngelB5k6J7Rv eRgoZladFSTuyE7ejw/ZQbDiJHzanpO4Sv3q6TNg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E4E67F80578; Tue, 30 Nov 2021 15:51:07 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 761E8F8057A; Tue, 30 Nov 2021 15:51:02 +0100 (CET) Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2C36EF80519 for ; Tue, 30 Nov 2021 15:50:55 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2C36EF80519 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CCBv9zie" 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 sin.source.kernel.org (Postfix) with ESMTPS id 07C17CE1A4B; Tue, 30 Nov 2021 14:50:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40C2EC53FC7; Tue, 30 Nov 2021 14:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638283851; bh=Z/tw+q0KjEN4a3fO7zZN2tqAT9jijX8ngH7qsDGJvnw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CCBv9zieRWlD3Y7Se4pInUb+HueJMnXPrXFwwoRcYQAr9XWitCL3Z004uOG7ONMYo M3zow58LJm4Vhtjd5tSfbSV7SyBhCmWiM6fqvmHlNB2MxLwEUSr52AYtnuWgeghDM1 RnEWwSXB9se74CZ2UrRjCOUEu8ev0wE6ixIho7tOjpWOO24t7KaFRFlT2JucmEbquu wBXK54lVsWiomhTLm2vPZVm4Xa9W04AQxNBxnhbpA0KR+LdghpdasV+k45m0odfIXB C1pfpjPzbcS+uOsmzcA3+3MmwI5ZkUjROTG9ghrRXpHbfKZOUiOuRUEj9X/bqIrIEK IoHQOptRjbUnA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 09/43] ASoC: qdsp6: q6adm: improve error reporting Date: Tue, 30 Nov 2021 09:49:46 -0500 Message-Id: <20211130145022.945517-9-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211130145022.945517-1-sashal@kernel.org> References: <20211130145022.945517-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 72f29720398cd..9316775a882a3 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); } @@ -508,7 +508,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