Ignore:
Timestamp:
Dec 21, 2018, 8:43:27 PM (11 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_leon4_n2x.c

    r75e1009f rc05d7a9d  
    2525 */
    2626
     27#include <inttypes.h>
    2728#include <stdio.h>
    2829#include <stdlib.h>
     
    506507                devinfo->id.vendor, devinfo->id.device);
    507508        for (i = 0; i < 3; i++) {
    508                 printk(" PCI BAR[%d]: 0x%08lx - 0x%08lx\n",
     509                printk(" PCI BAR[%d]: 0x%08" PRIx32 " - 0x%08" PRIx32 "\n",
    509510                        i, devinfo->resources[i].address,
    510511                        devinfo->resources[i].address +
     
    761762        bar0 = devinfo->resources[0].address;
    762763        bar0_size = devinfo->resources[0].size;
    763         printf(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
    764         printf(" IRQ REGS:        0x%x\n", (unsigned int)priv->irq);
     764        printf(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     765                bar0, bar0 + bar0_size - 1);
     766        printf(" IRQ REGS:        0x%" PRIxPTR "\n", (uintptr_t)priv->irq);
    765767        printf(" IRQ:             %d\n", devinfo->irq);
    766768        printf(" PCI REVISION:    %d\n", devinfo->rev);
Note: See TracChangeset for help on using the changeset viewer.