refactor(master : nicsensor)调整init debug log函数

This commit is contained in:
leimingsheng 2025-05-08 14:59:33 +08:00
parent abd632d4f2
commit 2d663d4ec8

@ -555,11 +555,13 @@ init_debuglog(){
format_log_print $INFO "Disable Detect : $DISABLE_DETECT" format_log_print $INFO "Disable Detect : $DISABLE_DETECT"
if [ "$nic_slot" = "detect" ];then 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 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 else
format_log_print $INFO "Operation Tpye : read sensor" format_log_print $INFO "Operation Type : read sensor"
fi fi
} }