diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-10-27 14:09:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-10-27 14:09:36 -0400 |
commit | 490f0dc4d52a01904cead9dd2fa57956ca737eb7 (patch) | |
tree | 1f33f2c0b0318fe8d7b1ed08832ae787ba9c6627 /drivers/net/wireless/ath/ath6kl | |
parent | 61ed53deb1c6a4386d8710dbbfcee8779c381931 (diff) | |
parent | 84cbf3a7592879810f80cece6c7f736f099ab163 (diff) |
Merge tag 'for-linville-20141024' of git://github.com/kvalo/ath
Conflicts:
drivers/net/wireless/ath/wil6210/wil6210.h
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/common.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/debug.c | 28 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/debug.h | 13 |
3 files changed, 15 insertions, 28 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/common.h b/drivers/net/wireless/ath/ath6kl/common.h index 05debf700a84..4f82e8632d37 100644 --- a/drivers/net/wireless/ath/ath6kl/common.h +++ b/drivers/net/wireless/ath/ath6kl/common.h | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #define ATH6KL_MAX_IE 256 | 23 | #define ATH6KL_MAX_IE 256 |
24 | 24 | ||
25 | __printf(2, 3) int ath6kl_printk(const char *level, const char *fmt, ...); | 25 | __printf(2, 3) void ath6kl_printk(const char *level, const char *fmt, ...); |
26 | 26 | ||
27 | /* | 27 | /* |
28 | * Reflects the version of binary interface exposed by ATH6KL target | 28 | * Reflects the version of binary interface exposed by ATH6KL target |
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c index 55c4064dd506..81ba48d2938b 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.c +++ b/drivers/net/wireless/ath/ath6kl/debug.c | |||
@@ -37,76 +37,64 @@ struct ath6kl_fwlog_slot { | |||
37 | 37 | ||
38 | #define ATH6KL_FWLOG_VALID_MASK 0x1ffff | 38 | #define ATH6KL_FWLOG_VALID_MASK 0x1ffff |
39 | 39 | ||
40 | int ath6kl_printk(const char *level, const char *fmt, ...) | 40 | void ath6kl_printk(const char *level, const char *fmt, ...) |
41 | { | 41 | { |
42 | struct va_format vaf; | 42 | struct va_format vaf; |
43 | va_list args; | 43 | va_list args; |
44 | int rtn; | ||
45 | 44 | ||
46 | va_start(args, fmt); | 45 | va_start(args, fmt); |
47 | 46 | ||
48 | vaf.fmt = fmt; | 47 | vaf.fmt = fmt; |
49 | vaf.va = &args; | 48 | vaf.va = &args; |
50 | 49 | ||
51 | rtn = printk("%sath6kl: %pV", level, &vaf); | 50 | printk("%sath6kl: %pV", level, &vaf); |
52 | 51 | ||
53 | va_end(args); | 52 | va_end(args); |
54 | |||
55 | return rtn; | ||
56 | } | 53 | } |
57 | EXPORT_SYMBOL(ath6kl_printk); | 54 | EXPORT_SYMBOL(ath6kl_printk); |
58 | 55 | ||
59 | int ath6kl_info(const char *fmt, ...) | 56 | void ath6kl_info(const char *fmt, ...) |
60 | { | 57 | { |
61 | struct va_format vaf = { | 58 | struct va_format vaf = { |
62 | .fmt = fmt, | 59 | .fmt = fmt, |
63 | }; | 60 | }; |
64 | va_list args; | 61 | va_list args; |
65 | int ret; | ||
66 | 62 | ||
67 | va_start(args, fmt); | 63 | va_start(args, fmt); |
68 | vaf.va = &args; | 64 | vaf.va = &args; |
69 | ret = ath6kl_printk(KERN_INFO, "%pV", &vaf); | 65 | ath6kl_printk(KERN_INFO, "%pV", &vaf); |
70 | trace_ath6kl_log_info(&vaf); | 66 | trace_ath6kl_log_info(&vaf); |
71 | va_end(args); | 67 | va_end(args); |
72 | |||
73 | return ret; | ||
74 | } | 68 | } |
75 | EXPORT_SYMBOL(ath6kl_info); | 69 | EXPORT_SYMBOL(ath6kl_info); |
76 | 70 | ||
77 | int ath6kl_err(const char *fmt, ...) | 71 | void ath6kl_err(const char *fmt, ...) |
78 | { | 72 | { |
79 | struct va_format vaf = { | 73 | struct va_format vaf = { |
80 | .fmt = fmt, | 74 | .fmt = fmt, |
81 | }; | 75 | }; |
82 | va_list args; | 76 | va_list args; |
83 | int ret; | ||
84 | 77 | ||
85 | va_start(args, fmt); | 78 | va_start(args, fmt); |
86 | vaf.va = &args; | 79 | vaf.va = &args; |
87 | ret = ath6kl_printk(KERN_ERR, "%pV", &vaf); | 80 | ath6kl_printk(KERN_ERR, "%pV", &vaf); |
88 | trace_ath6kl_log_err(&vaf); | 81 | trace_ath6kl_log_err(&vaf); |
89 | va_end(args); | 82 | va_end(args); |
90 | |||
91 | return ret; | ||
92 | } | 83 | } |
93 | EXPORT_SYMBOL(ath6kl_err); | 84 | EXPORT_SYMBOL(ath6kl_err); |
94 | 85 | ||
95 | int ath6kl_warn(const char *fmt, ...) | 86 | void ath6kl_warn(const char *fmt, ...) |
96 | { | 87 | { |
97 | struct va_format vaf = { | 88 | struct va_format vaf = { |
98 | .fmt = fmt, | 89 | .fmt = fmt, |
99 | }; | 90 | }; |
100 | va_list args; | 91 | va_list args; |
101 | int ret; | ||
102 | 92 | ||
103 | va_start(args, fmt); | 93 | va_start(args, fmt); |
104 | vaf.va = &args; | 94 | vaf.va = &args; |
105 | ret = ath6kl_printk(KERN_WARNING, "%pV", &vaf); | 95 | ath6kl_printk(KERN_WARNING, "%pV", &vaf); |
106 | trace_ath6kl_log_warn(&vaf); | 96 | trace_ath6kl_log_warn(&vaf); |
107 | va_end(args); | 97 | va_end(args); |
108 | |||
109 | return ret; | ||
110 | } | 98 | } |
111 | EXPORT_SYMBOL(ath6kl_warn); | 99 | EXPORT_SYMBOL(ath6kl_warn); |
112 | 100 | ||
diff --git a/drivers/net/wireless/ath/ath6kl/debug.h b/drivers/net/wireless/ath/ath6kl/debug.h index e194c10d9f00..19106ed28961 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.h +++ b/drivers/net/wireless/ath/ath6kl/debug.h | |||
@@ -50,10 +50,10 @@ enum ATH6K_DEBUG_MASK { | |||
50 | }; | 50 | }; |
51 | 51 | ||
52 | extern unsigned int debug_mask; | 52 | extern unsigned int debug_mask; |
53 | __printf(2, 3) int ath6kl_printk(const char *level, const char *fmt, ...); | 53 | __printf(2, 3) void ath6kl_printk(const char *level, const char *fmt, ...); |
54 | __printf(1, 2) int ath6kl_info(const char *fmt, ...); | 54 | __printf(1, 2) void ath6kl_info(const char *fmt, ...); |
55 | __printf(1, 2) int ath6kl_err(const char *fmt, ...); | 55 | __printf(1, 2) void ath6kl_err(const char *fmt, ...); |
56 | __printf(1, 2) int ath6kl_warn(const char *fmt, ...); | 56 | __printf(1, 2) void ath6kl_warn(const char *fmt, ...); |
57 | 57 | ||
58 | enum ath6kl_war { | 58 | enum ath6kl_war { |
59 | ATH6KL_WAR_INVALID_RATE, | 59 | ATH6KL_WAR_INVALID_RATE, |
@@ -81,10 +81,9 @@ int ath6kl_debug_init_fs(struct ath6kl *ar); | |||
81 | void ath6kl_debug_cleanup(struct ath6kl *ar); | 81 | void ath6kl_debug_cleanup(struct ath6kl *ar); |
82 | 82 | ||
83 | #else | 83 | #else |
84 | static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask, | 84 | static inline void ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask, |
85 | const char *fmt, ...) | 85 | const char *fmt, ...) |
86 | { | 86 | { |
87 | return 0; | ||
88 | } | 87 | } |
89 | 88 | ||
90 | static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask, | 89 | static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask, |