From 56c0d0927d3d9962d3159751dbed3ce1c6c3ac36 Mon Sep 17 00:00:00 2001 From: Xiaoyu Ye Date: Wed, 9 Oct 2019 21:57:42 -0700 Subject: [PATCH] dsp: lsm: don't print physical address of invalid lsm client pointer Function q6lsm_get_session_id_from_lsm_client will print out the physical address of a lsm client pointer in error message when it fails to find the matching lsm client. This is not needed because the address information is redundant and might cause potential issue when a lsm client is already invalid. Change-Id: If8c38b566c839c4b45d98e79802d0fd6efb5bdb9 Signed-off-by: Xiaoyu Ye --- dsp/q6lsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dsp/q6lsm.c b/dsp/q6lsm.c index 9c5bf3d30dee..bb52d6761960 100644 --- a/dsp/q6lsm.c +++ b/dsp/q6lsm.c @@ -104,8 +104,7 @@ static int q6lsm_get_session_id_from_lsm_client(struct lsm_client *client) if (lsm_session[n] == client) return n; } - pr_err("%s: cannot find matching lsm client. client = %pa\n", - __func__, client); + pr_err("%s: cannot find matching lsm client.\n", __func__); return LSM_INVALID_SESSION_ID; }