[alsa-devel] [PATCH 6/8] ASoC: SigmaDSP: Provide diagnostic error messages
Mike Frysinger
vapier at gentoo.org
Fri Nov 25 21:02:34 CET 2011
On Friday 25 November 2011 03:59:21 Lars-Peter Clausen wrote:
> On 11/24/2011 06:32 PM, Mike Frysinger wrote:
> > On Thursday 24 November 2011 07:48:25 Lars-Peter Clausen wrote:
> >> + if (crc != le32_to_cpu(ssfw_head->crc)) {
> >> + dev_err(&client->dev, "Failed to load firmware: Wrong crc
checksum:"
> >> \ + " expected %x got %x.\n",
> >
> > it's my understanding that string constants should not be split
>
> I think it is fine here. You probably wouldn't grep for %x anyway.
no, but you would copy and paste a string like:
"Failed to load firmware: Wrong crc checksum: expected"
and then not find a match
i think it's best to follow the style anyways ...
also, no need for the period at the end of the msg. that's useless noise and
can be annoying to copying & pasting numbers.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20111125/6d8ca4ce/attachment.sig
More information about the Alsa-devel
mailing list