From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Wed, 26 Nov 2008 17:24:08 +0100 Subject: [U-Boot] grep for message (was: USB style patch) In-Reply-To: <492D4CC3.9020107@gandalf.sssup.it> References: <492D4CC3.9020107@gandalf.sssup.it> <20081126104540.GA28899@gandalf.sssup.it> <3efb10970811260315y72417986uf4348dbb3cbd3028@mail.gmail.com> <492D31AC.2070006@gandalf.sssup.it> <20081126120709.53A62834B020@gemini.denx.de> Message-ID: <20081126162408.GA26554@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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