[U-Boot] grep for message
michael
trimarchi at gandalf.sssup.it
Thu Nov 27 12:21:43 CET 2008
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
More information about the U-Boot
mailing list