diff options
Diffstat (limited to 'kernel/ethosu_network_info.c')
-rw-r--r-- | kernel/ethosu_network_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |