From edd2550cd909b584610ac18387b3261a4f50b392 Mon Sep 17 00:00:00 2001 From: Ledion Daja Date: Tue, 17 Oct 2023 09:15:32 +0200 Subject: Decrease log verbosity in the kernel modules Changed several logs level from info to dbg and removed redundant or uninformative logging in order to reduce verbosity of the kernel modules. Change-Id: Ie9ff7f3ae6478007ea58547380b3ddfef5d280b4 Signed-off-by: Ledion Daja --- kernel/ethosu_network.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'kernel/ethosu_network.c') diff --git a/kernel/ethosu_network.c b/kernel/ethosu_network.c index dc641c5..94354ed 100644 --- a/kernel/ethosu_network.c +++ b/kernel/ethosu_network.c @@ -1,5 +1,6 @@ /* - * Copyright 2020,2022-2023 Arm Limited and/or its affiliates + * SPDX-FileCopyrightText: Copyright 2020,2022-2023 Arm Limited and/or its affiliates + * SPDX-License-Identifier: GPL-2.0-only * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software @@ -15,7 +16,6 @@ * along with this program; if not, you can access it online at * http://www.gnu.org/licenses/gpl-2.0.html. * - * SPDX-License-Identifier: GPL-2.0-only */ /**************************************************************************** @@ -69,7 +69,7 @@ static void ethosu_network_destroy(struct kref *kref) container_of(kref, struct ethosu_network, kref); struct device *dev = net->dev; - dev_info(dev, "Network destroy. net=0x%pK\n", net); + dev_dbg(dev, "Network destroy. net=0x%pK\n", net); if (net->buf != NULL) ethosu_buffer_put(net->buf); @@ -84,8 +84,8 @@ static int ethosu_network_release(struct inode *inode, struct ethosu_network *net = file->private_data; struct device *dev = net->dev; - dev_info(dev, "Network release. file=0x%pK, net=0x%pK\n", - file, net); + dev_dbg(dev, "Network release. file=0x%pK, net=0x%pK\n", + file, net); ethosu_network_put(net); @@ -105,15 +105,11 @@ static long ethosu_network_ioctl(struct file *file, if (ret) return ret; - dev_info(dev, - "Network ioctl: file=0x%pK, net=0x%pK, cmd=0x%x, arg=0x%lx\n", - file, net, cmd, arg); - switch (cmd) { case ETHOSU_IOCTL_NETWORK_INFO: { struct ethosu_uapi_network_info uapi = { 0 }; - dev_info(dev, "Network ioctl: Network info. net=0x%pK\n", net); + dev_dbg(dev, "Network ioctl: Network info. net=0x%pK\n", net); ret = ethosu_network_info_request(dev, net->mailbox, net, &uapi); @@ -131,9 +127,9 @@ static long ethosu_network_ioctl(struct file *file, break; } - dev_info(dev, - "Network ioctl: Inference. ifm_fd=%u, ofm_fd=%u\n", - uapi.ifm_fd[0], uapi.ofm_fd[0]); + dev_dbg(dev, + "Network ioctl: Inference. ifm_fd=%u, ofm_fd=%u\n", + uapi.ifm_fd[0], uapi.ofm_fd[0]); ret = ethosu_inference_create(dev, net->mailbox, net, &uapi); break; @@ -185,9 +181,9 @@ int ethosu_network_create(struct device *dev, net->file = fget(ret); fput(net->file); - dev_info(dev, - "Network create. file=0x%pK, fd=%d, net=0x%pK, buf=0x%pK, index=%u", - net->file, ret, net, net->buf, net->index); + dev_dbg(dev, + "Network create. file=0x%pK, fd=%d, net=0x%pK, buf=0x%pK, index=%u", + net->file, ret, net, net->buf, net->index); return ret; -- cgit v1.2.1