src/dpdk/drivers/net/ice/base/ice_common.c
void ice_print_rollback_msg(struct ice_hw *hw)
{
	char nvm_str[ICE_NVM_VER_LEN] = { 0 };
	struct ice_orom_info *orom;
	struct ice_nvm_info *nvm;

	orom = &hw->flash.orom;
	nvm = &hw->flash.nvm;

	SNPRINTF(nvm_str, sizeof(nvm_str), "%x.%02x 0x%x %d.%d.%d",
		 nvm->major, nvm->minor, nvm->eetrack, orom->major,
		 orom->build, orom->patch);
	ice_warn(hw,
		 "Firmware rollback mode detected. Current version is NVM: %s, FW: %d.%d. Device may exhibit limited functionality. Refer to the Intel(R) Ethernet Adapters and Devices User Guide for details on firmware rollback mode\n",
		 nvm_str, hw->fw_maj_ver, hw->fw_min_ver);
}
/**
 * ice_print_rollback_msg - print FW rollback message
 * @hw: pointer to the hardware structure
 */
print FW rollback message
@hw: pointer to the hardware structure
print FW rollback message @hw : pointer to the hardware structure
void ice_print_rollback_msg(struct ice_hw *hw)
{
	char nvm_str[ICE_NVM_VER_LEN] = { 0 };
	struct ice_orom_info *orom;
	struct ice_nvm_info *nvm;
	orom = &hw->flash.orom;
	nvm = &hw->flash.nvm;
	SNPRINTF(nvm_str, sizeof(nvm_str), "%x.%02x 0x%x %d.%d.%d",
		 nvm->major, nvm->minor, nvm->eetrack, orom->major,
		 orom->build, orom->patch);
	ice_warn(hw,
		 "Firmware rollback mode detected. Current version is NVM: %s, FW: %d.%d. Device may exhibit limited functionality. Refer to the Intel(R) Ethernet Adapters and Devices User Guide for details on firmware rollback mode\n",
		 nvm_str, hw->fw_maj_ver, hw->fw_min_ver);
}
void ice_print_rollback_msg ( struct ice_hw * hw ) { char nvm_str [ ICE_NVM_VER_LEN ] = { 0 } ; struct ice_orom_info * orom ; struct ice_nvm_info * nvm ; orom = & hw -> flash . orom ; nvm = & hw -> flash . nvm ; SNPRINTF ( nvm_str , sizeof ( nvm_str ) , " " , nvm -> major , nvm -> minor , nvm -> eetrack , orom -> major , orom -> build , orom -> patch ) ; ice_warn ( hw , " \n " , nvm_str , hw -> fw_maj_ver , hw -> fw_min_ver ) ; }
ice_print_rollback_msg - print FW rollback message
 @hw: pointer to the hardware structure
ice_print_rollback_msg - print FW rollback message @hw : pointer to the hardware structure