[BUGFIX] iwlwifi: use length-limiting format instead of modifying region name

The TLV region data we receive in iwl_dbg_tlv_alloc_region() is
constant, but we were erroneusly casting them to non-const.  This was
fixed upstream in v5.12, but we still try to modify the data in our

Instead of force-terminating the original string by adding a \0 at the
end, use the string length limit in the format we use.


Change-Id: I1f1a53db0504c63a54a3316114d63d805cfe620f
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/314529
automatic-review: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
Tested-by: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
x-iwlwifi-stack-dev: 2d9588569ba35cfbd69aa8eefe6366731d92896d
2 files changed