]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: dbg: decrement occurrences for all triggers
authorSara Sharon <sara.sharon@intel.com>
Thu, 21 Jun 2018 11:24:45 +0000 (14:24 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 6 Oct 2018 07:25:54 +0000 (10:25 +0300)
commita1fff5a94bc7d447ea4f3ad1a38a75a9c0714620
tree3c4671f165a0927804395f51e57b2273ca6e2ae8
parent47c763be7b1b4c52d61d877b126ac614d6a2a6ca
iwlwifi: dbg: decrement occurrences for all triggers

iwl_fw_dbg_collect can be called by any function that already
has the error string ready. iwl_fw_dbg_collect_trig, on the
other hand, does string formatting. The occurrences decrement
is at iwl_fw_dbg_collect_trig, instead of iwl_fw_dbg_collect,
which causes it to sometimes be skipped. Move it to the right
location.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
drivers/net/wireless/intel/iwlwifi/fw/dbg.h