There is an else missing you are correct
> +       if(id1&0x8080)
> +               snprintf(buf, 10, "%0x4X:%0x4X", id1, id2);
else 
{
> +       buf[0] = (id1 >> 8);
> +       buf[1] = (id1 & 0xFF);
> +       buf[2] = (id2 >> 8);
> +       snprintf(buf+3, 7, "%d", id2&0xFF);
}
> +       return buf;
> +}
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/