Lines Matching refs:buf
111 static void _wpa_hexdump(int level, const char *title, const u8 *buf,
122 if (buf == NULL) {
126 fprintf(out_file, " %02x", buf[i]);
134 if (buf == NULL) {
138 printf(" %02x", buf[i]);
148 void wpa_hexdump(int level, const char *title, const u8 *buf, size_t len)
150 _wpa_hexdump(level, title, buf, len, 1);
154 void wpa_hexdump_key(int level, const char *title, const u8 *buf, size_t len)
156 _wpa_hexdump(level, title, buf, len, wpa_debug_show_keys);
160 static void _wpa_hexdump_ascii(int level, const char *title, const u8 *buf,
164 const u8 *pos = buf;
178 if (buf == NULL) {
213 if (buf == NULL) {
245 void wpa_hexdump_ascii(int level, const char *title, const u8 *buf, size_t len)
247 _wpa_hexdump_ascii(level, title, buf, len, 1);
251 void wpa_hexdump_ascii_key(int level, const char *title, const u8 *buf,
254 _wpa_hexdump_ascii(level, title, buf, len, wpa_debug_show_keys);
303 char *buf;
307 buf = os_malloc(buflen);
308 if (buf == NULL) {
314 len = vsnprintf(buf, buflen, fmt, ap);
316 wpa_printf(level, "%s", buf);
318 wpa_msg_cb(ctx, level, buf, len);
319 os_free(buf);
326 char *buf;
333 buf = os_malloc(buflen);
334 if (buf == NULL) {
340 len = vsnprintf(buf, buflen, fmt, ap);
342 wpa_msg_cb(ctx, level, buf, len);
343 os_free(buf);
361 char *buf;
365 buf = os_malloc(buflen);
366 if (buf == NULL) {
372 len = vsnprintf(buf, buflen, fmt, ap);
375 hostapd_logger_cb(ctx, addr, module, level, buf, len);
377 wpa_printf(MSG_DEBUG, "hostapd_logger: %s", buf);
378 os_free(buf);