Commit 1a6dc75e authored by Benoit Rat's avatar Benoit Rat

userspace: add WARNING comments because functions return static storage

parent c6bea0b2
......@@ -47,7 +47,10 @@ uint64_t shw_get_tics()
}
/**
* \brief Helper function to quickly display byte into binary code.
* WARNING: this returns static storage
*/
const char *shw_2binary(uint8_t x)
{
static char b[9];
......
......@@ -32,6 +32,7 @@
/**
* \brief Helper function to convert mac address into a string
* WARNING: this returns static storage
*/
char *mac_to_string(uint8_t mac[ETH_ALEN])
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment