Skip to content

Commit 2c47e5a

Browse files
sara-sKalle Valo
authored andcommitted
iwlwifi: dbg: add debug data to warning
Add debug data to the warning issued when getting wrong region id from firmware. Signed-off-by: Sara Sharon <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 83ea00d commit 2c47e5a

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/fw

1 file changed

+2
-1
lines changed

drivers/net/wireless/intel/iwlwifi/fw/dbg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,8 @@ static void iwl_fw_dbg_update_regions(struct iwl_fw_runtime *fwrt,
16471647
int id = le32_to_cpu(reg->region_id);
16481648
struct iwl_fw_ini_active_regs *active;
16491649

1650-
if (WARN_ON(id >= ARRAY_SIZE(fwrt->dump.active_regs)))
1650+
if (WARN(id >= ARRAY_SIZE(fwrt->dump.active_regs),
1651+
"Invalid region id %d for apply point %d\n", id, pnt))
16511652
break;
16521653

16531654
active = &fwrt->dump.active_regs[id];

0 commit comments

Comments
 (0)