From 42699b0ac92cfd7236f44aa6c00caf625b022b79 Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Wed, 16 Aug 2023 11:25:12 +0200 Subject: Add error logs to network info response handling To make it easier to detect why a network info request failed, logs have been added to the network info response error handling. Change-Id: I88d98e08501711912d10068344cef62634ac3889 Signed-off-by: Mikael Olsson --- kernel/ethosu_network_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/ethosu_network_info.c b/kernel/ethosu_network_info.c index 898d48e..724db28 100644 --- a/kernel/ethosu_network_info.c +++ b/kernel/ethosu_network_info.c @@ -150,11 +150,15 @@ void ethosu_network_info_rsp(struct ethosu_mailbox *mailbox, info->errno = 0; if (rsp->status != ETHOSU_CORE_STATUS_OK) { + dev_err(dev, "Failed to get information about the network\n"); info->errno = -EBADF; goto signal_complete; } if (rsp->ifm_count > ETHOSU_FD_MAX || rsp->ofm_count > ETHOSU_FD_MAX) { + dev_err(dev, + "Invalid number of IFMs/OFMs in network info: IFMs=%u OFMs=%u\n", + rsp->ifm_count, rsp->ofm_count); info->errno = -ENFILE; goto signal_complete; } -- cgit v1.2.1