[U-Boot] grep for message

michael
2008-11-27T11:21:43Z

Hi,

Alessandro Rubini wrote:
>> It is nessary a grep with the full message? There are a lot of situation
>> when the grep is impossible.
>>
>
> FWIW, I think it's not important to have the message in one line.
>
> I prefer to grep for the message in the object files. This is
> especially useful when the same message appears in different places
> (e.g., different archs), so I'm sure I only get the ones that are
> in my binary
>
> #!/bin/sh
> find . -name "*.o" -o -name "*.ko" | xargs nm -o | grep $1
>
> /alessandro
>
>

I'm agree with Alessandro. The code is more readable if we have lines <
80 chars.

Regards Michael