aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-05-18 15:47:36 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-18 15:47:36 (GMT)
commited496f131f0fb9327f3fa92b1692d018a4fe9cd4 (patch)
treebe85dd30433aa99df925535a4b8f2f6ac162dd0d /src/p2p/p2p_i.h
parent710ae9ac1f98d6cf8599d7c6b9f1badb4f13eab8 (diff)
downloadhostap-ed496f131f0fb9327f3fa92b1692d018a4fe9cd4.zip
hostap-ed496f131f0fb9327f3fa92b1692d018a4fe9cd4.tar.gz
hostap-ed496f131f0fb9327f3fa92b1692d018a4fe9cd4.tar.bz2
P2P: Clean up debug prints
Replace direct wpa_msg() calls with p2p_dbg(), p2p_info(), and p2p_err() calls that use a new debug_print() callback to handle actual debug printing outside the P2P module. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index ea6c146..6e57f45 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -717,5 +717,11 @@ int p2p_send_action(struct p2p_data *p2p, unsigned int freq, const u8 *dst,
void p2p_stop_listen_for_freq(struct p2p_data *p2p, int freq);
int p2p_prepare_channel(struct p2p_data *p2p, struct p2p_device *dev,
unsigned int force_freq, unsigned int pref_freq);
+void p2p_dbg(struct p2p_data *p2p, const char *fmt, ...)
+PRINTF_FORMAT(2, 3);
+void p2p_info(struct p2p_data *p2p, const char *fmt, ...)
+PRINTF_FORMAT(2, 3);
+void p2p_err(struct p2p_data *p2p, const char *fmt, ...)
+PRINTF_FORMAT(2, 3);
#endif /* P2P_I_H */