Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22b48087 authored by Kenny Hsu's avatar Kenny Hsu Committed by Wey-Yi Guy
Browse files

iwlwifi: update error dump in testmode command sram_read



The error message will be show up by using IWL_ERR
insteads of IWl_DEBUG_INFO.

Signed-off-by: default avatarKenny Hsu <kenny.hsu@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent 25324caf
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -759,21 +759,21 @@ static int iwl_testmode_sram(struct ieee80211_hw *hw, struct nlattr **tb)
		maxsize = trans(priv)->ucode_wowlan.data.len;
		maxsize = trans(priv)->ucode_wowlan.data.len;
		break;
		break;
	case IWL_UCODE_NONE:
	case IWL_UCODE_NONE:
		IWL_DEBUG_INFO(priv, "Error, uCode does not been loaded\n");
		IWL_ERR(priv, "Error, uCode does not been loaded\n");
		return -ENOSYS;
		return -ENOSYS;
	default:
	default:
		IWL_DEBUG_INFO(priv, "Error, unsupported uCode type\n");
		IWL_ERR(priv, "Error, unsupported uCode type\n");
		return -ENOSYS;
		return -ENOSYS;
	}
	}
	if ((ofs + size) > (maxsize + SRAM_DATA_SEG_OFFSET)) {
	if ((ofs + size) > (maxsize + SRAM_DATA_SEG_OFFSET)) {
		IWL_DEBUG_INFO(priv, "Invalid offset/size: out of range\n");
		IWL_ERR(priv, "Invalid offset/size: out of range\n");
		return -EINVAL;
		return -EINVAL;
	}
	}
	priv->testmode_sram.buff_size = (size / 4) * 4;
	priv->testmode_sram.buff_size = (size / 4) * 4;
	priv->testmode_sram.buff_addr =
	priv->testmode_sram.buff_addr =
		kmalloc(priv->testmode_sram.buff_size, GFP_KERNEL);
		kmalloc(priv->testmode_sram.buff_size, GFP_KERNEL);
	if (priv->testmode_sram.buff_addr == NULL) {
	if (priv->testmode_sram.buff_addr == NULL) {
		IWL_DEBUG_INFO(priv, "Error allocating memory\n");
		IWL_ERR(priv, "Error allocating memory\n");
		return -ENOMEM;
		return -ENOMEM;
	}
	}
	_iwl_read_targ_mem_words(bus(priv), ofs,
	_iwl_read_targ_mem_words(bus(priv), ofs,