From: Tom Rini Date: Thu, 21 Jun 2018 11:20:53 -0400 Subject: [U-Boot] [U-Boot,v5,5/6] cmd: iotrace: add dump trace command In-Reply-To: References: <20180608175327.9097-6-ramon.fried@gmail.com> <20180619184128.GH4609@bill-the-cat.ec.rr.com> Message-ID: <20180621152053.GV4609@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Thu, Jun 21, 2018 at 05:11:27PM +0200, Alexander Graf wrote: > On 06/19/2018 08:41 PM, Tom Rini wrote: > >On Fri, Jun 08, 2018 at 08:53:26PM +0300, Ramon Fried wrote: > > > >>Add dump trace command which dump all trace > >>buffer content in a much more readable fashion > >>than md. > >> > >>Signed-off-by: Ramon Fried > >>Reviewed-by: Simon Glass > >Applied to u-boot/master, thanks! > > This fails to compile for me: > > cmd/iotrace.c: In function ‘do_print_trace’: > cmd/iotrace.c:42:2: error: ‘for’ loop initial declarations are only allowed > in C99 mode >   for (int i = 0; i < count; i++) { >   ^ > cmd/iotrace.c:42:2: note: use option -std=c99 or -std=gnu99 to compile your > code > scripts/Makefile.build:278: recipe for target 'cmd/iotrace.o' failed Yes. I didn't notice this part in time, and I've posted a patch to start using -std=gnu11 globally as that makes more sense to me than reworking this (and a few other ARM-specific areas) that make use of this construct. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: