瀏覽代碼

asoc: msm-lsm-client: fix error logging for set session data failure

Error logging from set session data is not reflecting actual reason of failure.
Update error logging for this failure with correct info.

Change-Id: I5009a8b17128f0093e16f75c0e212a9bfb1f1a2e
Signed-off-by: Dhananjay Kumar <[email protected]>
Dhananjay Kumar 6 年之前
父節點
當前提交
1bf124f9d9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      asoc/msm-lsm-client.c

+ 2 - 2
asoc/msm-lsm-client.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
  */
 #include <linux/init.h>
 #include <linux/err.h>
@@ -1050,7 +1050,7 @@ static int msm_lsm_ioctl_shared(struct snd_pcm_substream *substream,
 		if (ses_data_v2.app_id != LSM_VOICE_WAKEUP_APP_ID_V2) {
 			dev_err(rtd->dev,
 				"%s:Invalid App id %d for Listen client\n",
-			       __func__, session_data.app_id);
+			       __func__, ses_data_v2.app_id);
 			rc = -EINVAL;
 			break;
 		}