util: added macros to print mac addresses

This commit is contained in:
James Prestwood 2018-01-31 09:55:58 -08:00 committed by Denis Kenzior
parent 62bdf6c482
commit ce0d5858da
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
#define MAC "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAC_STR(a) a[0], a[1], a[2], a[3], a[4], a[5]
const char *util_ssid_to_utf8(size_t len, const uint8_t *ssid);
bool util_ssid_is_utf8(size_t len, const uint8_t *ssid);
const char *util_address_to_string(const uint8_t *addr);