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)
commitaf303252bffa8d0622e077dc9cb246695b47ad07
tree3c4671f165a0927804395f51e57b2273ca6e2ae8
parent5bea4304eea790766dd45cdd328ee287df2ade75
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