~ubuntu-branches/ubuntu/saucy/wpasupplicant/saucy

« back to all changes in this revision

Viewing changes to src/utils/wpa_debug.h

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2010-02-27 11:30:53 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100227113053-axxieaw3hmuqbqls
Tags: 0.6.10-2
* Switch to source format 3.0 (quilt), drop quilt build dependency
  and remove '--with quilt' from dh command in debian/rules.
* Fix "FTBFS on kfreebsd-gnu" with addition of 21_kfreebsd.patch.
  Thanks to work by Stefan Lippers-Hollmann and Petr Salinger.
  (Closes: #480572)
* Disable experimental feature CONFIG_IEEE80211W (management frame
  protection) due to it not being supported by any driver but ath9k
  and it generating ioctl errors which cause much concern among users
  for little to no benefit.
* Add traling blank line to debian/NEWS to assist apt-listchanges as
  per lintian advice.
* Cherry pick 30_cfg80211_association_optimisation.patch from upstream
  git. Add cfg80211-specific optimization to avoid silly behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 *
61
61
 * Note: New line '\n' is added to the end of the text when printing to stdout.
62
62
 */
63
 
void wpa_printf(int level, char *fmt, ...)
 
63
void wpa_printf(int level, const char *fmt, ...)
64
64
PRINTF_FORMAT(2, 3);
65
65
 
66
66
/**
141
141
 
142
142
#ifdef CONFIG_NO_WPA_MSG
143
143
#define wpa_msg(args...) do { } while (0)
 
144
#define wpa_msg_ctrl(args...) do { } while (0)
144
145
#define wpa_msg_register_cb(f) do { } while (0)
145
146
#else /* CONFIG_NO_WPA_MSG */
146
147
/**
157
158
 *
158
159
 * Note: New line '\n' is added to the end of the text when printing to stdout.
159
160
 */
160
 
void wpa_msg(void *ctx, int level, char *fmt, ...) PRINTF_FORMAT(3, 4);
 
161
void wpa_msg(void *ctx, int level, const char *fmt, ...) PRINTF_FORMAT(3, 4);
 
162
 
 
163
/**
 
164
 * wpa_msg_ctrl - Conditional printf for ctrl_iface monitors
 
165
 * @ctx: Pointer to context data; this is the ctx variable registered
 
166
 *      with struct wpa_driver_ops::init()
 
167
 * @level: priority level (MSG_*) of the message
 
168
 * @fmt: printf format string, followed by optional arguments
 
169
 *
 
170
 * This function is used to print conditional debugging and error messages.
 
171
 * This function is like wpa_msg(), but it sends the output only to the
 
172
 * attached ctrl_iface monitors. In other words, it can be used for frequent
 
173
 * events that do not need to be sent to syslog.
 
174
 */
 
175
void wpa_msg_ctrl(void *ctx, int level, const char *fmt, ...)
 
176
PRINTF_FORMAT(3, 4);
161
177
 
162
178
typedef void (*wpa_msg_cb_func)(void *ctx, int level, const char *txt,
163
179
                                size_t len);
205
221
};
206
222
 
207
223
 
 
224
#ifdef CONFIG_DEBUG_SYSLOG
 
225
 
 
226
void wpa_debug_open_syslog(void);
 
227
void wpa_debug_close_syslog(void);
 
228
 
 
229
#else /* CONFIG_DEBUG_SYSLOG */
 
230
 
 
231
static inline void wpa_debug_open_syslog(void)
 
232
{
 
233
}
 
234
 
 
235
static inline void wpa_debug_close_syslog(void)
 
236
{
 
237
}
 
238
 
 
239
#endif /* CONFIG_DEBUG_SYSLOG */
 
240
 
208
241
 
209
242
#ifdef EAPOL_TEST
210
243
#define WPA_ASSERT(a)                                                  \