Ignore:
Timestamp:
Dec 21, 2018, 8:43:27 PM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8f5abea
Parents:
75e1009f
git-author:
Sebastian Huber <sebastian.huber@…> (12/21/18 20:43:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/21/18 20:43:54)
Message:

bsps/sparc: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/shared/pci/gr_rasta_spw_router.c

    r75e1009f rc05d7a9d  
    1414 */
    1515
     16#include <inttypes.h>
    1617#include <stdio.h>
    1718#include <stdlib.h>
     
    423424        printk(" PCI VENDOR: 0x%04x, DEVICE: 0x%04x\n",
    424425                devinfo->id.vendor, devinfo->id.device);
    425         printk(" PCI BAR[0]: 0x%08lx - 0x%08lx\n", bar0, bar0 + bar0_size - 1);
     426        printk(" PCI BAR[0]: 0x%08" PRIx32 " - 0x%08" PRIx32 "\n",
     427                bar0, bar0 + bar0_size - 1);
    426428        printk(" IRQ: %d\n\n\n", devinfo->irq);
    427429
     
    656658        bar0 = devinfo->resources[0].address;
    657659        bar0_size = devinfo->resources[0].size;
    658         printf(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
    659         printf(" IRQ REGS:        0x%x\n", (unsigned int)priv->irq);
     660        printf(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     661                bar0, bar0 + bar0_size - 1);
     662        printf(" IRQ REGS:        0x%" PRIxPTR "\n", (uintptr_t)priv->irq);
    660663        printf(" IRQ:             %d\n", devinfo->irq);
    661664        printf(" PCI REVISION:    %d\n", devinfo->rev);
Note: See TracChangeset for help on using the changeset viewer.