Move debug level string conversion functions to wpa_debug.c

This makes it possible to use these helper functions from hostapd as
well as the current use in wpa_supplicant.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-08-03 17:44:55 +03:00 committed by Jouni Malinen
parent 84bcb4e7a9
commit ab62f96f55
3 changed files with 42 additions and 39 deletions

View file

@ -364,4 +364,7 @@ static inline void wpa_debug_close_linux_tracing(void)
#define WPA_ASSERT(a) do { } while (0)
#endif
const char * debug_level_str(int level);
int str_to_debug_level(const char *s);
#endif /* WPA_DEBUG_H */