Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > The kernel version of snprintf() can't return negatives. The > "ret > (int)sizeof(sym)" check is off by one because and it should be > >=. Finally, we need to set a negative error code. Reviewed-by: Florian Westphal <fw@xxxxxxxxx>