mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
smcinvoke: Correct logging message
Add correct logs on error conditions for correct debugging. Change-Id: I4ca034f2c0c86b637924bbf27990eb4b099a5eda Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
This commit is contained in:
parent
5f5ad727a8
commit
4ffa5be260
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "smcinvoke: %s: " fmt, __func__
|
||||
|
|
@ -1114,7 +1114,7 @@ out:
|
|||
if (ret == 0) {
|
||||
pr_err("CBObj timed out! No more retries\n");
|
||||
cb_req->result = OBJECT_ERROR_ABORT;
|
||||
} else if (ret < 0) {
|
||||
} else if (ret == -ERESTARTSYS) {
|
||||
pr_err("wait event interruped, ret: %d\n", ret);
|
||||
cb_req->result = OBJECT_ERROR_ABORT;
|
||||
} else {
|
||||
|
|
@ -1128,7 +1128,7 @@ out:
|
|||
cb_req->result = OBJECT_ERROR_DEFUNCT;
|
||||
pr_err("server invalid, res: %d\n", cb_req->result);
|
||||
} else {
|
||||
pr_err("%s: unexpected event happened\n", __func__);
|
||||
pr_err("%s: unexpected event happened, ret:%d\n", __func__, ret);
|
||||
cb_req->result = OBJECT_ERROR_ABORT;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue