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

Commit 05841faa authored by Shahar S Matityahu's avatar Shahar S Matityahu Committed by Luca Coelho
Browse files

iwlwifi: dbg_ini: add print to iwl_dump_ini_mem in case of invalid range



Add informative print in case the range is not available.

Signed-off-by: default avatarShahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 00276722
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1300,14 +1300,18 @@ iwl_dump_ini_mem(struct iwl_fw_runtime *fwrt,
	memcpy(header->name, reg->name, le32_to_cpu(header->name_len));

	range = ops->fill_mem_hdr(fwrt, header);
	if (!range)
	if (!range) {
		IWL_ERR(fwrt, "Failed to fill region header: id=%d, type=%d\n",
			le32_to_cpu(reg->region_id), type);
		return;
	}

	for (i = 0; i < num_of_ranges; i++) {
		int range_data_size = ops->fill_range(fwrt, range, reg, i);

		if (range_data_size < 0) {
			IWL_ERR(fwrt, "Failed to dump region type %d\n", type);
			IWL_ERR(fwrt, "Failed to dump region: id=%d, type=%d\n",
				le32_to_cpu(reg->region_id), type);
			return;
		}
		range = ((void *)range) + sizeof(*range) + range_data_size;