Re: [PATCH v7 08/14] Introduce chr-testdev

Levente Kurusa
2014-07-16T09:31:35Z

----- Original Message -----
> [...]
> +void chr_testdev_exit(int code)
> +{
> + char buf[8];
> + int len;
> +
> + snprintf(buf, sizeof(buf), "%dq", code);
> + len = strlen(buf);

AFAIK, snprintf returns the number of characters written, so
these two statements can be merged into one.

Thanks,
Levente Kurusa