User Tools

Site Tools


en:users:drivers:ath10k:codingstyle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:users:drivers:ath10k:codingstyle [2018/04/13 11:11]
Kalle Valo Add section for debug messages
en:users:drivers:ath10k:codingstyle [2018/04/13 11:16] (current)
Kalle Valo Add section for error message
Line 145: Line 145:
  * Bar  * Bar
  ​*/</​code>​  ​*/</​code>​
 +
 +==== Error messages ====
 +
 +For warning and error messages we have ath10k_warn() and ath10k_err().
 +
 +ath10k_warn() should be used when ath10k still continues to work, for example then some limit has been reached or an unknown event has been received. It's also rate limited.
 +
 +ath10k_err() should be used when a fatal error has been detected and ath10k will shut itself down, for example during driver initialisation or firmware recover fails. It is NOT rate limited.
  
 ==== Debug messages ==== ==== Debug messages ====
en/users/drivers/ath10k/codingstyle.txt ยท Last modified: 2018/04/13 11:16 by Kalle Valo