aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/lib.c')
-rw-r--r--net/bluetooth/lib.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c
index 941ad7530eda..b36bc0415854 100644
--- a/net/bluetooth/lib.c
+++ b/net/bluetooth/lib.c
@@ -135,40 +135,34 @@ int bt_to_errno(__u16 code)
135} 135}
136EXPORT_SYMBOL(bt_to_errno); 136EXPORT_SYMBOL(bt_to_errno);
137 137
138int bt_info(const char *format, ...) 138void bt_info(const char *format, ...)
139{ 139{
140 struct va_format vaf; 140 struct va_format vaf;
141 va_list args; 141 va_list args;
142 int r;
143 142
144 va_start(args, format); 143 va_start(args, format);
145 144
146 vaf.fmt = format; 145 vaf.fmt = format;
147 vaf.va = &args; 146 vaf.va = &args;
148 147
149 r = pr_info("%pV", &vaf); 148 pr_info("%pV", &vaf);
150 149
151 va_end(args); 150 va_end(args);
152
153 return r;
154} 151}
155EXPORT_SYMBOL(bt_info); 152EXPORT_SYMBOL(bt_info);
156 153
157int bt_err(const char *format, ...) 154void bt_err(const char *format, ...)
158{ 155{
159 struct va_format vaf; 156 struct va_format vaf;
160 va_list args; 157 va_list args;
161 int r;
162 158
163 va_start(args, format); 159 va_start(args, format);
164 160
165 vaf.fmt = format; 161 vaf.fmt = format;
166 vaf.va = &args; 162 vaf.va = &args;
167 163
168 r = pr_err("%pV", &vaf); 164 pr_err("%pV", &vaf);
169 165
170 va_end(args); 166 va_end(args);
171
172 return r;
173} 167}
174EXPORT_SYMBOL(bt_err); 168EXPORT_SYMBOL(bt_err);