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_cpci_gr740.c

    r75e1009f rc05d7a9d  
    2626 */
    2727
     28#include <inttypes.h>
    2829#include <stdio.h>
    2930#include <stdlib.h>
     
    483484                devinfo->id.vendor, devinfo->id.device);
    484485        for (i = 0; i < 3; i++) {
    485                 printk(" PCI BAR[%d]: 0x%08lx - 0x%08lx\n",
     486                printk(" PCI BAR[%d]: 0x%08" PRIx32 " - 0x%08" PRIx32 "\n",
    486487                        i, devinfo->resources[i].address,
    487488                        devinfo->resources[i].address +
     
    738739        bar0 = devinfo->resources[0].address;
    739740        bar0_size = devinfo->resources[0].size;
    740         printf(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
    741         printf(" IRQ REGS:        0x%x\n", (unsigned int)priv->irq);
     741        printf(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     742                bar0, bar0 + bar0_size - 1);
     743        printf(" IRQ REGS:        0x%" PRIxPTR "\n", (uintptr_t)priv->irq);
    742744        printf(" IRQ:             %d\n", devinfo->irq);
    743745        printf(" PCI REVISION:    %d\n", devinfo->rev);
Note: See TracChangeset for help on using the changeset viewer.