From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael Date: Thu, 27 Nov 2008 12:21:43 +0100 Subject: [U-Boot] grep for message In-Reply-To: <20081126162408.GA26554@mail.gnudd.com> 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> <20081126162408.GA26554@mail.gnudd.com> Message-ID: <492E82C7.4040208@gandalf.sssup.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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