Re: [PATCH v4 RESEND] pwm: atmel: add Timer Counter Block PWMdriver

From: Russell King - ARM Linux
Date: Tue Jan 08 2013 - 10:26:10 EST


On Tue, Jan 08, 2013 at 04:21:59PM +0100, Boris BREZILLON wrote:
> Do I have to break the error string so that the line does not exceed 80
> characters ?

No.

> Checkpath script does not complain about it, and the CodingStyle file
> specify that visible strings should not be broken...

Correct.

> Same question applies to this error, which I converted to a multi-line
> error in a previous patch version:
>
> dev_err(chip->dev,
> "failed to configure period_ns:\n"
> "the other PWM device in this group is already\n"
> "configured with a different period_ns value\n");

Which is a bad idea. It appears in log files as multiple lines, which
makes parsing the error for analysis difficult (eg, you may have a
log analyser which tells you how many times an error occurs - the
above would be treated as three separate errors.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/