mirror of https://github.com/proski/madwifi
Fix register name checks, name is a local array and will never be null, even when the contents are empty string / NULL.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3538 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
7e4c9f199b
commit
3f2f68b9c5
|
@ -599,7 +599,7 @@ _print_decoded_register_delta(struct ath_hal *ah, const char* device_name,
|
|||
device_name ? ":" : "",
|
||||
(regop == REGOP_READ ? "R:" :
|
||||
(regop == REGOP_WRITE ? "W:" : "")),
|
||||
name ? name : "(unknown)",
|
||||
(0 < strlen(name)) ? name : "(unknown)",
|
||||
address,
|
||||
v_new,
|
||||
BIT_STATUS(31),
|
||||
|
@ -707,7 +707,7 @@ _print_decoded_register_bitfields(struct ath_hal *ah, const char* device_name,
|
|||
device_name ? ":" : "",
|
||||
(regop == REGOP_READ ? "R:" :
|
||||
(regop == REGOP_WRITE ? "W:" : "")),
|
||||
name ? name : "(unknown)",
|
||||
(0 < strlen(name)) ? name : "(unknown)",
|
||||
(v & (1 << 31) ? " (1 << 31)" : ""),
|
||||
(v & (1 << 30) ? " (1 << 30)" : ""),
|
||||
(v & (1 << 29) ? " (1 << 29)" : ""),
|
||||
|
@ -751,7 +751,7 @@ _print_decoded_register_bitfields(struct ath_hal *ah, const char* device_name,
|
|||
device_name ? ":" : "",
|
||||
(regop == REGOP_READ ? "R:" :
|
||||
(regop == REGOP_WRITE ? "W:" : "")),
|
||||
name ? name : "(unknown)",
|
||||
(0 < strlen(name)) ? name : "(unknown)",
|
||||
(v & HAL_INT_GLOBAL ? " HAL_INT_GLOBAL" : ""),
|
||||
(v & HAL_INT_FATAL ? " HAL_INT_FATAL" : ""),
|
||||
(v & (1 << 29) ? " (1 << 29)" : ""),
|
||||
|
|
Loading…
Reference in New Issue