Changeset 9c12bcfd in rtems for cpukit/libpci/pci_bus.c


Ignore:
Timestamp:
Jan 7, 2019, 8:32:16 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
5b951175
Parents:
956d76cc
git-author:
Sebastian Huber <sebastian.huber@…> (01/07/19 08:32:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/07/19 08:49:16)
Message:

Fix format warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libpci/pci_bus.c

    r956d76cc r9c12bcfd  
    2727#define PCIBUS_INFO
    2828
     29#include <inttypes.h>
    2930#include <stdlib.h>
    3031#include <stdio.h>
     
    302303                        PCI_DEV_EXPAND(devinfo->pcidev));
    303304        print_line(p, buf);
    304         sprintf(buf, "PCIID        0x%lx", (uint32_t)devinfo->pcidev);
     305        sprintf(buf, "PCIID        0x%" PRIx16 "", devinfo->pcidev);
    305306        print_line(p, buf);
    306307        sprintf(buf, "VENDOR ID:   %04x", devinfo->id.vendor);
     
    312313        sprintf(buf, "SUBDEV ID:   %04x", devinfo->id.subdevice);
    313314        print_line(p, buf);
    314         sprintf(buf, "CLASS:       %lx", devinfo->id.class);
     315        sprintf(buf, "CLASS:       %" PRIx32, devinfo->id.class);
    315316        print_line(p, buf);
    316317        sprintf(buf, "REVISION:    %x", devinfo->rev);
     
    344345                        continue;
    345346
    346                 sprintf(buf, " %s[%d]:  %08lx-%08lx [PCIADR %lx]",
     347                sprintf(buf, " %s[%d]:  %08" PRIx32 "-%08" PRIx32
     348                        " [PCIADR %" PRIx32 "]",
    347349                        str1, i, pcibusres->address,
    348350                        pcibusres->address + pcibusres->size - 1, pcistart);
Note: See TracChangeset for help on using the changeset viewer.