aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_network_info.c
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2022-06-21 16:58:45 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-06-30 16:50:27 +0200
commit53fd03d0b8d02fa0be0aa9db4dce8766be459031 (patch)
tree5b44804cffeab24b36801e1dd850dbb70ae55ef9 /kernel/ethosu_network_info.c
parent2d69b8b5633d4d3cbd788443c54b5656077efce9 (diff)
downloadethos-u-linux-driver-stack-53fd03d0b8d02fa0be0aa9db4dce8766be459031.tar.gz
Improved logging22.08-rc222.08-rc122.08
Add logging class for driver library. Log severity can be configured using an environment variable. Add information to prints in kernel space. Change-Id: I19a1078869733746726515a6cafb79110314066d
Diffstat (limited to 'kernel/ethosu_network_info.c')
-rw-r--r--kernel/ethosu_network_info.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/kernel/ethosu_network_info.c b/kernel/ethosu_network_info.c
index 52adf9c..a99ca84 100644
--- a/kernel/ethosu_network_info.c
+++ b/kernel/ethosu_network_info.c
@@ -99,8 +99,9 @@ int ethosu_network_info_request(struct ethosu_network *net,
if (ret)
goto deregister;
- dev_info(info->edev->dev, "Network info create. Id=%d, handle=0x%p\n\n",
- info->msg.id, info);
+ dev_info(info->edev->dev,
+ "Network info create. info=0x%pK, net=0x%pK, msg.id=0x%x\n",
+ info, info->net, info->msg.id);
/* Unlock the device mutex and wait for completion */
mutex_unlock(&info->edev->mutex);
@@ -110,7 +111,8 @@ int ethosu_network_info_request(struct ethosu_network *net,
mutex_lock(&info->edev->mutex);
if (0 == timeout) {
- dev_warn(info->edev->dev, "Network info timed out.");
+ dev_warn(info->edev->dev, "Network info timed out. info=0x%pK",
+ info);
ret = -ETIME;
goto deregister;
@@ -123,8 +125,9 @@ deregister:
ethosu_network_put(info->net);
kfree:
- dev_info(info->edev->dev, "Network info destroy. Id=%d, handle=0x%p\n",
- info->msg.id, info);
+ dev_info(info->edev->dev,
+ "Network info destroy. info=0x%pK, msg.id=0x%x\n",
+ info, info->msg.id);
devm_kfree(info->edev->dev, info);
return ret;
@@ -142,7 +145,7 @@ void ethosu_network_info_rsp(struct ethosu_device *edev,
msg = ethosu_mailbox_find(&edev->mailbox, id);
if (IS_ERR(msg)) {
dev_warn(edev->dev,
- "Id for network info msg not found. Id=%d\n",
+ "Id for network info msg not found. msg.id=0x%x\n",
id);
return;