From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: broonie@kernel.org Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH 4/5] ASoC: qdsp6: q6adm: improve error reporting Date: Tue, 16 Nov 2021 11:47:20 +0000 [thread overview] Message-ID: <20211116114721.12517-5-srinivas.kandagatla@linaro.org> (raw) In-Reply-To: <20211116114721.12517-1-srinivas.kandagatla@linaro.org> 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 <srinivas.kandagatla@linaro.org> --- 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 3d831b635524..72c5719f1d25 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.21.0
WARNING: multiple messages have this Message-ID (diff)
From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: broonie@kernel.org Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, tiwai@suse.com Subject: [PATCH 4/5] ASoC: qdsp6: q6adm: improve error reporting Date: Tue, 16 Nov 2021 11:47:20 +0000 [thread overview] Message-ID: <20211116114721.12517-5-srinivas.kandagatla@linaro.org> (raw) In-Reply-To: <20211116114721.12517-1-srinivas.kandagatla@linaro.org> 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 <srinivas.kandagatla@linaro.org> --- 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 3d831b635524..72c5719f1d25 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.21.0
next prev parent reply other threads:[~2021-11-16 11:48 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-16 11:47 [PATCH 0/5] ASoC: qdsp6: fixes and improve error reporting Srinivas Kandagatla 2021-11-16 11:47 ` Srinivas Kandagatla 2021-11-16 11:47 ` [PATCH 1/5] ASoC: qdsp6: qdsp6: q6prm: handle clk disable correctly Srinivas Kandagatla 2021-11-16 11:47 ` Srinivas Kandagatla 2021-11-16 11:47 ` [PATCH 2/5] ASoC: qdsp6: q6routing: Conditionally reset FrontEnd Mixer Srinivas Kandagatla 2021-11-16 11:47 ` Srinivas Kandagatla 2021-11-16 11:47 ` [PATCH 3/5] ASoC: qdsp6: q6asm: fix q6asm_dai_prepare error handling Srinivas Kandagatla 2021-11-16 11:47 ` Srinivas Kandagatla 2021-11-16 11:47 ` Srinivas Kandagatla [this message] 2021-11-16 11:47 ` [PATCH 4/5] ASoC: qdsp6: q6adm: improve error reporting Srinivas Kandagatla 2021-11-16 11:47 ` [PATCH 5/5] ASoC: qdsp6: q6routing: validate port id before setting up route Srinivas Kandagatla 2021-11-16 11:47 ` Srinivas Kandagatla 2021-11-16 17:48 ` [PATCH 0/5] ASoC: qdsp6: fixes and improve error reporting Mark Brown 2021-11-16 17:48 ` Mark Brown
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211116114721.12517-5-srinivas.kandagatla@linaro.org \ --to=srinivas.kandagatla@linaro.org \ --cc=alsa-devel@alsa-project.org \ --cc=broonie@kernel.org \ --cc=lgirdwood@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=perex@perex.cz \ --cc=pierre-louis.bossart@linux.intel.com \ --cc=tiwai@suse.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.