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

    r75e1009f rc05d7a9d  
    1616 */
    1717
     18#include <inttypes.h>
    1819#include <stdio.h>
    1920#include <stdlib.h>
     
    602603        printk(" PCI VENDOR: 0x%04x, DEVICE: 0x%04x\n",
    603604                devinfo->id.vendor, devinfo->id.device);
    604         printk(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
    605         printk(" PCI BAR[1]: 0x%lx - 0x%lx\n", bar1, bar1 + bar1_size - 1);
     605        printk(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     606                bar0, bar0 + bar0_size - 1);
     607        printk(" PCI BAR[1]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     608                bar1, bar1 + bar1_size - 1);
    606609        printk(" IRQ: %d\n\n\n", devinfo->irq);
    607610
     
    855858        bar1_size = devinfo->resources[1].size;
    856859
    857         printf(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
    858         printf(" PCI BAR[1]: 0x%lx - 0x%lx\n", bar1, bar1 + bar1_size - 1);
     860        printf(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     861                bar0, bar0 + bar0_size - 1);
     862        printf(" PCI BAR[1]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
     863                bar1, bar1 + bar1_size - 1);
    859864        printf(" IRQ:             %d\n", devinfo->irq);
    860865        printf(" PCI REVISION:    %d\n", devinfo->rev);
Note: See TracChangeset for help on using the changeset viewer.