From 2d663d4ec8bc07e3c7e3e6ebec1b84d0ed8eb6e0 Mon Sep 17 00:00:00 2001 From: leimingsheng Date: Thu, 8 May 2025 14:59:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(master=20:=20nicsensor)=E8=B0=83?= =?UTF-8?q?=E6=95=B4init=20debug=20log=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nicsensor.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nicsensor.sh b/nicsensor.sh index 9bd4766..cf87432 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -555,11 +555,13 @@ init_debuglog(){ format_log_print $INFO "Disable Detect : $DISABLE_DETECT" if [ "$nic_slot" = "detect" ];then - format_log_print $INFO "Operation Tpye : i2c detect" + format_log_print $INFO "Operation Type : i2c detect" elif [ "$nic_slot" = "version" ];then - format_log_print $INFO "Operation Tpye : get version" + format_log_print $INFO "Operation Type : get version" + elif [ $param_num -lt 2 ];then + format_log_print $INFO "Operation Type : help info" else - format_log_print $INFO "Operation Tpye : read sensor" + format_log_print $INFO "Operation Type : read sensor" fi }