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

    r956d76cc r9c12bcfd  
    1010
    1111#include <rtems.h>
     12#include <inttypes.h>
    1213#include <stdio.h>
    1314#include <string.h>
     
    5051                printf("%s{\n", prefix);
    5152                printf("%s\t.next = NULL,\n", prefix);
    52                 printf("%s\t.size = 0x%08lx,\n", prefix, res->size);
    53                 printf("%s\t.boundary = 0x%08lx,\n", prefix, res->boundary);
     53                printf("%s\t.size = 0x%08" PRIx32 ",\n", prefix, res->size);
     54                printf("%s\t.boundary = 0x%08" PRIx32 ",\n", prefix, res->boundary);
    5455                printf("%s\t.flags = 0x%x,\n", prefix, res->flags);
    5556                printf("%s\t.bar = %d,\n", prefix, i);
    56                 printf("%s\t.start = 0x%08lx,\n", prefix, res->start);
    57                 printf("%s\t.end = 0x%08lx,\n", prefix, res->end);
     57                printf("%s\t.start = 0x%08" PRIx32 ",\n", prefix, res->start);
     58                printf("%s\t.end = 0x%08" PRIx32 ",\n", prefix, res->end);
    5859                printf("%s},\n", prefix);
    5960        }
     
    8990        printf("%s.subvendor = 0x%04x,\n", prefix, dev->subvendor);
    9091        printf("%s.subdevice = 0x%04x,\n", prefix, dev->subdevice);
    91         printf("%s.classrev = 0x%08lx,\n", prefix, dev->classrev);
     92        printf("%s.classrev = 0x%08" PRIx32 ",\n", prefix, dev->classrev);
    9293        printf("%s.command = 0,\n", prefix);
    9394}
Note: See TracChangeset for help on using the changeset viewer.