[U-Boot] grep for message (was: USB style patch)

Alessandro Rubini rubini-list at gnudd.com
Wed Nov 26 17:24:08 CET 2008


> 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


More information about the U-Boot mailing list