diff options
author | Ge Bian <bian@google.com> | 2023-01-10 17:12:14 -0800 |
---|---|---|
committer | Holmes Chou <holmeschou@google.com> | 2023-02-23 06:51:39 +0000 |
commit | d822d9d2374e33c3d19eb9f36bbc176c6ff235f6 (patch) | |
tree | 56af376bd484554f729e31e09d3a66924d1a3d48 | |
parent | f64b1f139af2187bd0fad7f0483551d6f3555e2b (diff) | |
download | lwis-d822d9d2374e33c3d19eb9f36bbc176c6ff235f6.tar.gz |
LWIS: Update the error message for transaction cancel.
Change the "fail to cancel transaction" warning message to be worded
more morderate.
Bug: 263022378
Test: presubmit
Change-Id: I35fa463874f7dce4361f638c3b6658770af5ca2b
Signed-off-by: Ge Bian <bian@google.com>
-rw-r--r-- | lwis_cmd.c | 6 | ||||
-rw-r--r-- | lwis_ioctl.c | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -918,8 +918,10 @@ static int cmd_transaction_cancel(struct lwis_client *client, struct lwis_cmd_pk ret = lwis_transaction_cancel(client, k_msg.id); if (ret) { - dev_warn_ratelimited(lwis_dev->dev, "Failed to cancel transaction id 0x%llx (%d)\n", - k_msg.id, ret); + dev_info_ratelimited( + lwis_dev->dev, + "Transaction id 0x%llx does not exist or is already done, not available for cancel(%d)\n", + k_msg.id, ret); } header->ret_code = ret; diff --git a/lwis_ioctl.c b/lwis_ioctl.c index 7e6c54a..4cdc2ff 100644 --- a/lwis_ioctl.c +++ b/lwis_ioctl.c @@ -1190,8 +1190,10 @@ static int ioctl_transaction_cancel(struct lwis_client *client, int64_t __user * ret = lwis_transaction_cancel(client, id); if (ret) { - dev_warn_ratelimited(lwis_dev->dev, "Failed to cancel transaction id 0x%llx (%d)\n", - id, ret); + dev_info_ratelimited( + lwis_dev->dev, + "Transaction id 0x%llx does not exist or is already done, not available for cancel(%d)\n", + id, ret); return ret; } |