Changeset 9c12bcfd in rtems for cpukit/libmisc/shell/main_pci.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/libmisc/shell/main_pci.c

    r956d76cc r9c12bcfd  
    1313#endif
    1414
     15#include <inttypes.h>
    1516#include <limits.h>
    1617#include <stdlib.h>
     
    137138      result = pci_cfg_r32(pciid, offset, &data32);
    138139      if (result == PCISTS_OK)
    139         printf(" r32[0x%02x]: 0x%08lx  DEC=%lu\n", offset, data32, data32);
     140        printf(" r32[0x%02x]: 0x%08" PRIx32 "  DEC=%" PRIu32 "\n",
     141               offset, data32, data32);
    140142      break;
    141143
     
    178180      result = pci_cfg_w32(pciid, offset, data);
    179181      if (result == PCISTS_OK)
    180         printf(" w32[0x%02x]: 0x%08lx  DEC=%lu\n", offset, data, data);
     182        printf(" w32[0x%02x]: 0x%08" PRIx32 "  DEC=%" PRIu32 "\n",
     183               offset, data, data);
    181184      break;
    182185
     
    363366  printf(" SUB VENDOR:    0x%04x\n", dev->subvendor);
    364367  printf(" SUB DEVICE:    0x%04x\n", dev->subdevice);
    365   printf(" CLASS:         0x%06lx\n", dev->classrev >> 8);
    366   printf(" REVISION:      0x%02lx\n", dev->classrev & 0xff);
     368  printf(" CLASS:         0x%06" PRIx32 "\n", dev->classrev >> 8);
     369  printf(" REVISION:      0x%02" PRIx32 "\n", dev->classrev & 0xff);
    367370  printf(" IRQ:           %d\n", dev->sysirq);
    368371
     
    388391    }
    389392
    390     printf("  %s[%d]:  %08lx-%08lx\n", str1, i, res->start, res->end - 1);
     393    printf("  %s[%d]:  %08" PRIx32 "-%08" PRIx32 "\n",
     394           str1, i, res->start, res->end - 1);
    391395  }
    392396
Note: See TracChangeset for help on using the changeset viewer.