iwlwifi: improve error message

In case we cannot identify the firmware monitor buf_location,
print the type (usually 0 = invalid) so we have an idea at least
of what was set (or not).

MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2024-02-12 16:09:12 +00:00
parent 53eb2c63c9
commit df9d7d1e0e

View file

@ -68,7 +68,11 @@ iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans,
}
break;
default:
#if defined(__linux__)
IWL_ERR(trans, "WRT: Invalid buffer destination\n");
#elif defined(__FreeBSD__)
IWL_ERR(trans, "WRT: Invalid buffer destination: %d\n", le32_to_cpu(fw_mon_cfg->buf_location));
#endif
}
out:
if (dbg_flags)