On Mon,  8 Feb 2016 12:55:07 +0100
Nikolay Aleksandrov <ra...@blackwall.org> wrote:

>  
> +static void br_dump_bridge_id(const struct ifla_bridge_id *id, char *buf,
> +                           size_t len)
> +{
> +     const unsigned char *x = (const unsigned char *)id;
> +
> +     snprintf(buf, len, "%.2x%.2x.%.2x%.2x%.2x%.2x%.2x%.2x", x[0], x[1],
> +              x[2], x[3], x[4], x[5], x[6], x[7]);
> +}

Please don't reinvent ether_ntoa_r

Reply via email to