Changeset 31908b12 in rtems


Ignore:
Timestamp:
Apr 24, 2017, 1:05:12 AM (2 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
3f12cfe
Parents:
79d45cbd
git-author:
Joel Sherrill <joel@…> (04/24/17 01:05:12)
git-committer:
Joel Sherrill <joel@…> (04/24/17 17:00:56)
Message:

shared/bootloader/mm.c: Fix printf() format warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/bootloader/mm.c

    r79d45cbd r31908b12  
    211211        } else {
    212212          MMUon();
    213           printk("\nPanic: vector=%x, dsisr=%lx, faultaddr =%lx, msr=%lx opcode=%lx\n", vec,
     213          printk(
     214                "\nPanic: vector=%d, dsisr=%lx, faultaddr =%lx, "
     215                  "msr=%lx opcode=%x\n", vec,
    214216                 cause, p->nip, p->msr, * ((unsigned int*) p->nip) );
    215217          if (vec == 7) {
    216218            unsigned int* ptr = ((unsigned int*) p->nip) - 4 * 10;
    217219            for (; ptr <= (((unsigned int*) p->nip) + 4 * 10); ptr ++)
    218               printk("Hexdecimal code at address %x = %x\n", ptr, *ptr);
     220              printk("Hexdecimal code at address %p = %x\n", ptr, *ptr);
    219221          }
    220222          hang("Program or alignment exception at ", vaddr, p);
Note: See TracChangeset for help on using the changeset viewer.