diff options
author | Joe Perches <joe@perches.com> | 2010-12-02 22:12:36 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-07 16:34:47 -0500 |
commit | 3800276a40751539a920ef8e0537ef2e19126799 (patch) | |
tree | ccf058ea286aef7faa79aea4236b30c1b8cb757e /drivers/net/wireless/ath/ath9k/init.c | |
parent | 21a99f934949807dc0c9dc7642bbf0081b7582f9 (diff) |
ath: Convert ath_print(.., ATH_DBG_FATAL to ath_err
So these errors are always emitted at KERN_ERR level.
Remove ARRAY_SIZE casts, use printf type %zu
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 918308a28410..2b519b387a29 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -283,8 +283,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, | |||
283 | 283 | ||
284 | /* ath_desc must be a multiple of DWORDs */ | 284 | /* ath_desc must be a multiple of DWORDs */ |
285 | if ((desc_len % 4) != 0) { | 285 | if ((desc_len % 4) != 0) { |
286 | ath_print(common, ATH_DBG_FATAL, | 286 | ath_err(common, "ath_desc not DWORD aligned\n"); |
287 | "ath_desc not DWORD aligned\n"); | ||
288 | BUG_ON((desc_len % 4) != 0); | 287 | BUG_ON((desc_len % 4) != 0); |
289 | error = -ENOMEM; | 288 | error = -ENOMEM; |
290 | goto fail; | 289 | goto fail; |
@@ -736,8 +735,7 @@ int ath9k_init_device(u16 devid, struct ath_softc *sc, u16 subsysid, | |||
736 | 735 | ||
737 | error = ath9k_init_debug(ah); | 736 | error = ath9k_init_debug(ah); |
738 | if (error) { | 737 | if (error) { |
739 | ath_print(common, ATH_DBG_FATAL, | 738 | ath_err(common, "Unable to create debugfs files\n"); |
740 | "Unable to create debugfs files\n"); | ||
741 | goto error_world; | 739 | goto error_world; |
742 | } | 740 | } |
743 | 741 | ||