Changeset 4590fd96 in rtems


Ignore:
Timestamp:
Apr 4, 2017, 10:04:02 PM (2 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
281cf07
Parents:
582e12af
Message:

gen68340/startup/dumppanic.c: Fix warnings

File:
1 edited

Legend:

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

    r582e12af r4590fd96  
    115115  int i;
    116116
    117   printk(0,"%x : %x \t%x",0,sr,(unsigned short)(((unsigned)pc)>>16));
     117  printk("%x : %x \t%x",0,sr,(unsigned short)(((unsigned)pc)>>16));
    118118  for (i=2; i<size; i++) {
    119     if ((i%8)==0) printk(0,"\n%x :",i/8);
    120     printk(0," %x\t",stack[i-2]);
     119    if ((i%8)==0) printk("\n%x :",i/8);
     120    printk(" %x\t",stack[i-2]);
    121121  }
    122   printk(0,"\n");
     122  printk("\n");
    123123}
    124124
     
    147147    frametype = (_boot_panic_registers.format_id&0xF000)>>12;
    148148
    149     printk(0,"\n---------------------------------------------\n");
     149    printk("\n---------------------------------------------\n");
    150150    if (vector<64)
    151       printk(0,"%s",exceptionName[vector]);
     151      printk("%s",exceptionName[vector]);
    152152    else {
    153       printk(0,"RESERVED USER");
     153      printk("RESERVED USER");
    154154    }
    155     printk(0," exception (vector %x, type %x)\n",vector,frametype);
    156     printk(0,"---------------------------------------------\n");
    157     printk(0,"PC : 0x%x  ",pc);
    158     printk(0,"A7 : 0x%x  ",_boot_panic_registers.a7);
    159     printk(0,"SR : 0x%x\n",status);
     155    printk(" exception (vector %x, type %x)\n",vector,frametype);
     156    printk("---------------------------------------------\n");
     157    printk("PC : 0x%x  ",pc);
     158    printk("A7 : 0x%x  ",_boot_panic_registers.a7);
     159    printk("SR : 0x%x\n",status);
    160160    if (frametype==0x0c) {
    161       printk(0,"\nfaulted address = 0x%x\n",faultedAddr);
     161      printk("\nfaulted address = 0x%x\n",faultedAddr);
    162162    }
    163     printk(0,"---------------------------------------------\n");
    164     printk(0,"               panic regs\n");
    165     printk(0,"---------------------------------------------\n");
    166     printk(0,"D[0..3] : %x \t%x \t%x \t%x\n",
     163    printk("---------------------------------------------\n");
     164    printk("               panic regs\n");
     165    printk("---------------------------------------------\n");
     166    printk("D[0..3] : %x \t%x \t%x \t%x\n",
    167167        _boot_panic_registers.d0,_boot_panic_registers.d1,
    168168        _boot_panic_registers.d2,_boot_panic_registers.d3);
    169     printk(0,"D[4..7] : %x \t%x \t%x \t%x\n",
     169    printk("D[4..7] : %x \t%x \t%x \t%x\n",
    170170        _boot_panic_registers.d4,_boot_panic_registers.d5,
    171171        _boot_panic_registers.d6,_boot_panic_registers.d7);
    172     printk(0,"A[0..3] : %x \t%x \t%x \t%x\n",
     172    printk("A[0..3] : %x \t%x \t%x \t%x\n",
    173173        _boot_panic_registers.a0,_boot_panic_registers.a1,
    174174        _boot_panic_registers.a2,_boot_panic_registers.a3);
    175     printk(0,"A[4..7] : %x \t%x \t%x \t%x\n",
     175    printk("A[4..7] : %x \t%x \t%x \t%x\n",
    176176        _boot_panic_registers.a4,_boot_panic_registers.a5,
    177177        _boot_panic_registers.a6,_boot_panic_registers.a7);
    178178
    179     printk(0,"    SFC : %x",_boot_panic_registers.sfc);
    180     printk(0,"    DFC : %x\n",_boot_panic_registers.dfc);
    181     printk(0,"    VBR : %x\n",_boot_panic_registers.vbr);
    182     printk(0,"---------------------------------------------\n");
    183     printk(0,"               panic stack\n");
    184     printk(0,"---------------------------------------------\n");
     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);
     182    printk("---------------------------------------------\n");
     183    printk("               panic stack\n");
     184    printk("---------------------------------------------\n");
    185185    _dbug_dump(status, pc, (unsigned short*)stack,64*2);
    186186
    187     printk(0,"---------------------------------------------\n");
    188     printk(0,"press escape to reboot\n");
     187    printk("---------------------------------------------\n");
     188    printk("press escape to reboot\n");
    189189  } while ((c=getchark())!=ESCAPE);
    190190}
Note: See TracChangeset for help on using the changeset viewer.