Re: [PATCH 2/2] ARM: pcmcia: fix checkpatch.pl issues in soc_common.c

From: Valdis . Kletnieks
Date: Fri Mar 26 2010 - 11:58:47 EST


On Wed, 24 Mar 2010 20:20:19 -0300, Marcelo Jimenez said:

>> -     debug(skt, 2, "mask: %s%s%s%s%s%sflags: %s%s%s%s%s%sVcc %d Vpp %d irq %d\n",

> I will redo it, no problem. But just for my information, in that
> particular case, is it usefull to grep using format specifiers?

Until you find the format string, you really don't know for sure if
it's a %d or a %u or a %alt-ctl-cokebottle so you end up grepping like this:

egrep 'mask: .*flags: .*Vcc .* Vpp .* irq'

basically wildcarding your way across whatever %foo might be there.

Attachment: pgp00000.pgp
Description: PGP signature