libpayload: Don't declare the loop counter within the for loop
'for' loop initial declarations are only allowed in C99 mode I didn't realize we don't enable 14 year old features when building libpayload, and I must have accidentally not rebuilt everything when making my final tweaks to my earlier change. Change-Id: I6caeeffad177b6d61fa30175f767e85084c061f4 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://review.coreboot.org/2718 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
0f5a3fc367
commit
cc86e63e83
|
@ -45,11 +45,12 @@ void exception_fiq(uint32_t *);
|
||||||
|
|
||||||
static void print_regs(uint32_t *regs)
|
static void print_regs(uint32_t *regs)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
/* Don't print the link register and stack pointer since we don't have their
|
/* Don't print the link register and stack pointer since we don't have their
|
||||||
* actual value. They are hidden by the 'shadow' registers provided
|
* actual value. They are hidden by the 'shadow' registers provided
|
||||||
* by the trap hardware.
|
* by the trap hardware.
|
||||||
*/
|
*/
|
||||||
for (int i = 0; i < 16; i++) {
|
for (i = 0; i < 16; i++) {
|
||||||
if (i == 15)
|
if (i == 15)
|
||||||
printf("PC");
|
printf("PC");
|
||||||
else if (i == 14)
|
else if (i == 14)
|
||||||
|
|
Loading…
Reference in New Issue