Changeset 08d85992 in rtems


Ignore:
Timestamp:
Mar 1, 2017, 10:31:57 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1f618ab0
Parents:
a60db69
Message:

bsps/powerpc: Fix warnings

Location:
c/src/lib/libbsp/powerpc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen5200/irq/irq.c

    ra60db69 r08d85992  
    7474/***********************************************************************/
    7575
     76#include <inttypes.h>
     77
    7678#include <rtems.h>
    7779
     
    718720{
    719721  if (vector != BSP_DECREMENTER) {
    720     printk( "Spurious interrupt: 0x%08x\n", vector);
    721   }
    722 }
     722    printk( "Spurious interrupt: 0x%08" PRIx32 "\n", vector);
     723  }
     724}
  • c/src/lib/libbsp/powerpc/gen5200/nvram/nvram.c

    ra60db69 r08d85992  
    580580
    581581    }
    582   else
    583     count = args->count;
    584 
    585     m93cxx_enable_write();
    586 
    587     WAIT(1);
     582
     583  count = args->count;
     584
     585  m93cxx_enable_write();
     586
     587  WAIT(1);
    588588
    589589  for(i = 0; i < count; i++)
  • c/src/lib/libbsp/powerpc/shared/showbats.c

    ra60db69 r08d85992  
    1010 */
    1111
     12#include <inttypes.h>
    1213#include <string.h>
    1314
     
    2223  uint32_t size;
    2324
    24   printk("BAT%d raw(upper=0x%08x, lower=0x%08x) ", bat, upper, lower );
     25  printk("BAT%d raw(upper=0x%08" PRIx32 ", lower=0x%08" PRIx32 ") ", bat, upper, lower );
    2526
    2627  lowest_addr = (upper & 0xFFFE0000);
    2728  size = (((upper & 0x00001FFC) >> 2) + 1) * (128 * 1024);
    28   printk(" range(0x%08x, 0x%08x) %s%s %s%s%s%s %s\n",
     29  printk(" range(0x%08" PRIx32 ", 0x%08" PRIx32 ") %s%s %s%s%s%s %s\n",
    2930    lowest_addr,
    3031    lowest_addr + (size - 1),
  • c/src/lib/libbsp/powerpc/shared/uboot_dump_bdinfo.c

    ra60db69 r08d85992  
    88 */
    99
     10#include <inttypes.h>
    1011
    1112#include <bsp.h>
     
    3233  printk(
    3334    "*** U-Boot Information ***\n"
    34     "Start/Size of DRAM memory  = %p for %lx\n"
    35     "Start/Size of Flash memory = %p for %lx\n"
     35    "Start/Size of DRAM memory  = %lu for %llx\n"
     36    "Start/Size of Flash memory = %lu for %lx\n"
    3637    "Reserved area for startup monitor = %ld\n"
    37     "Start/Size of SRAM memory  = %p for %ld\n"
     38    "Start/Size of SRAM memory  = %lu for %ld\n"
    3839    "Boot/Reboot flag = %ld\n"
    39     "IP Address = %d:%d:%d:%d\n"
     40    "IP Address = %ld:%ld:%ld:%ld\n"
    4041    "Ethernet address = %02x:%02x:%02x:%02x:%02x:%02x\n"
    4142    "Ethernet speed in Mbps = %d\n"
     
    4647    #endif
    4748    #if defined(CONFIG_MPC5xxx)
    48       "MBAR                       = %p\n"
     49      "MBAR                       = %lx\n"
    4950      "IPB Bus Freq, in MHz       = %ld\n"
    5051      "PCI Bus Freq, in MHz       = %ld\n"
    5152    #endif
    5253    ,
    53     u->bi_memstart,   u->bi_memsize,
     54    u->bi_memstart, (unsigned long long) u->bi_memsize,
    5455    u->bi_flashstart, u->bi_flashsize,
    5556    u->bi_flashoffset,
Note: See TracChangeset for help on using the changeset viewer.