Commit e6423593 authored by Tristan Gingold's avatar Tristan Gingold

tools: fix link errors

parent 9a1d10b6
......@@ -486,7 +486,10 @@ static char *format_hex(char *s, const unsigned char *mac, int cnt)
int i;
*s = '\0';
for (i = 0; i < cnt; i++) {
pp_sprintf(s, "%s%02x:", s, mac[i]);
#ifdef CONFIG_WR_NODE
#define sprintf pp_sprintf
#endif
sprintf(s + 3 * i, "%02x:", mac[i]);
}
/* remove last colon */
......
......@@ -223,6 +223,7 @@ int main(int argc, char **argv)
return 0;
}
#if 0
char *format_hex(char *s, const unsigned char *mac, int cnt)
{
int i;
......@@ -246,3 +247,4 @@ char *format_mac(char *s, const unsigned char *mac)
format_hex(s, mac, 6);
return s;
}
#endif
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