Changeset 12c12e0 in rtems


Ignore:
Timestamp:
Apr 23, 2017, 5:55:25 PM (3 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
edec6dd
Parents:
90033411
git-author:
Joel Sherrill <joel@…> (04/23/17 17:55:25)
git-committer:
Joel Sherrill <joel@…> (04/24/17 17:00:54)
Message:

gen68340/startup/dumpanic.c: Fix printf() format warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/gen68340/startup/dumpanic.c

    r90033411 r12c12e0  
    155155    printk(" exception (vector %x, type %x)\n",vector,frametype);
    156156    printk("---------------------------------------------\n");
    157     printk("PC : 0x%x  ",pc);
    158     printk("A7 : 0x%x  ",_boot_panic_registers.a7);
     157    printk("PC : %p  ",pc);
     158    printk("A7 : 0x%lx  ",_boot_panic_registers.a7);
    159159    printk("SR : 0x%x\n",status);
    160160    if (frametype==0x0c) {
    161       printk("\nfaulted address = 0x%x\n",faultedAddr);
     161      printk("\nfaulted address = %p\n",faultedAddr);
    162162    }
    163163    printk("---------------------------------------------\n");
    164164    printk("               panic regs\n");
    165165    printk("---------------------------------------------\n");
    166     printk("D[0..3] : %x \t%x \t%x \t%x\n",
     166    printk("D[0..3] : %lx \t%lx \t%lx \t%lx\n",
    167167        _boot_panic_registers.d0,_boot_panic_registers.d1,
    168168        _boot_panic_registers.d2,_boot_panic_registers.d3);
    169     printk("D[4..7] : %x \t%x \t%x \t%x\n",
     169    printk("D[4..7] : %lx \t%lx \t%lx \t%lx\n",
    170170        _boot_panic_registers.d4,_boot_panic_registers.d5,
    171171        _boot_panic_registers.d6,_boot_panic_registers.d7);
    172     printk("A[0..3] : %x \t%x \t%x \t%x\n",
     172    printk("A[0..3] : %lx \t%lx \t%lx \t%lx\n",
    173173        _boot_panic_registers.a0,_boot_panic_registers.a1,
    174174        _boot_panic_registers.a2,_boot_panic_registers.a3);
    175     printk("A[4..7] : %x \t%x \t%x \t%x\n",
     175    printk("A[4..7] : %lx \t%lx \t%lx \t%lx\n",
    176176        _boot_panic_registers.a4,_boot_panic_registers.a5,
    177177        _boot_panic_registers.a6,_boot_panic_registers.a7);
    178178
    179     printk("    SFC : %x",_boot_panic_registers.sfc);
    180     printk("    DFC : %x\n",_boot_panic_registers.dfc);
    181     printk("    VBR : %x\n",_boot_panic_registers.vbr);
     179    printk("    SFC : %lx",_boot_panic_registers.sfc);
     180    printk("    DFC : %lx\n",_boot_panic_registers.dfc);
     181    printk("    VBR : %lx\n",_boot_panic_registers.vbr);
    182182    printk("---------------------------------------------\n");
    183183    printk("               panic stack\n");
Note: See TracChangeset for help on using the changeset viewer.