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

    r75e1009f rc05d7a9d  
    1616 */
    1717
     18#include <inttypes.h>
    1819#include <stdio.h>
    1920#include <stdlib.h>
     
    327328        printk(" PCI VENDOR: 0x%04x, DEVICE: 0x%04x\n",
    328329                devinfo->id.vendor, devinfo->id.device);
    329         printk(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
     330        printk(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     331                bar0, bar0 + bar0_size - 1);
    330332        printk(" IRQ: %d\n\n\n", devinfo->irq);
    331333
     
    557559        bar0_size = devinfo->resources[0].size;
    558560
    559         printf(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
    560         printf(" IRQ REGS:        0x%x\n", (unsigned int)priv->irq);
     561        printf(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     562                bar0, bar0 + bar0_size - 1);
     563        printf(" IRQ REGS:        0x%" PRIxPTR "\n", (uintptr_t)priv->irq);
    561564        printf(" IRQ:             %d\n", devinfo->irq);
    562565        printf(" FREQ:            %d Hz\n", priv->version->amba_freq_hz);
Note: See TracChangeset for help on using the changeset viewer.