Commit 0a270471 authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Mark Brown

ASoC: qdsp6: q6adm: improve error reporting

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: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20211116114721.12517-5-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 721a94b4
...@@ -390,7 +390,7 @@ struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, ...@@ -390,7 +390,7 @@ struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate,
int ret = 0; int ret = 0;
if (port_id < 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); return ERR_PTR(-EINVAL);
} }
...@@ -508,7 +508,7 @@ int q6adm_matrix_map(struct device *dev, int path, ...@@ -508,7 +508,7 @@ int q6adm_matrix_map(struct device *dev, int path,
int port_idx = payload_map.port_id[i]; int port_idx = payload_map.port_id[i];
if (port_idx < 0) { 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]); payload_map.port_id[i]);
kfree(pkt); kfree(pkt);
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment