Changeset 7bde91b in rtems


Ignore:
Timestamp:
Jan 10, 2019, 8:05:49 AM (2 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8eaf136d
Parents:
3a5c71d
git-author:
Sebastian Huber <sebastian.huber@…> (01/10/19 08:05:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/10/19 08:06:56)
Message:

Fix format warnings due to ino_t changes

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/inttypes.h

    r3a5c71d r7bde91b  
    128128#define PRIxrtems_signal_set PRIx32
    129129
    130 /* newlib's ino_t is a typedef to "unsigned long" */
    131 #define PRIxino_t "lx"
     130/* newlib's ino_t is a typedef to __uint64_t */
     131#define PRIuino_t PRIu64
     132
     133/* newlib's ino_t is a typedef to __uint64_t */
     134#define PRIxino_t PRIx64
    132135
    133136/* ioctl_command_t */
  • cpukit/libfs/src/rfs/rtems-rfs-dir.c

    r3a5c71d r7bde91b  
    623623
    624624      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
    625         printf ("rtems-rfs: dir-read: found off:%" PRIooff_t " ino:%ld name=%s\n",
     625        printf ("rtems-rfs: dir-read: found off:%" PRIooff_t
     626                " ino:%" PRIuino_t " name=%s\n",
    626627                dirent->d_off, dirent->d_ino, dirent->d_name);
    627628      break;
  • cpukit/libmisc/shell/main_rm.c

    r3a5c71d r7bde91b  
    4949
    5050#include <rtems.h>
     51#include <rtems/inttypes.h>
    5152#include <rtems/shell.h>
    5253#include <rtems/shellconfig.h>
     
    494495                return (1);
    495496        if (sbp->st_nlink > 1 && !fflag) {
    496                 warnx("%s (inode %lu): not overwritten due to multiple links",
    497                     file, sbp->st_ino);
     497                warnx("%s (inode %" PRIuino_t
     498                    "): not overwritten due to multiple links", file,
     499                    sbp->st_ino);
    498500                return (0);
    499501        }
  • cpukit/libmisc/shell/print-ls.c

    r3a5c71d r7bde91b  
    5151
    5252#include <rtems.h>
     53#include <rtems/inttypes.h>
    5354#include <rtems/libio.h>
    5455
     
    136137                sp = p->fts_statp;
    137138                if (f_inode)
    138                         (void)printf("%*lu ", dp->s_inode, sp->st_ino);
     139                        (void)printf("%*" PRIuino_t " ", dp->s_inode,
     140                            sp->st_ino);
    139141                if (f_size && !f_humanize) {
    140142                        (void)printf("%*llu ", dp->s_block,
     
    386388        chcnt = 0;
    387389        if (f_inode)
    388                 chcnt += printf("%*lu ", inodefield, sp->st_ino);
     390                chcnt += printf("%*" PRIuino_t " ", inodefield, sp->st_ino);
    389391        if (f_size) {
    390392#if RTEMS_REMOVED
  • testsuites/psxtests/psxreaddir/test.c

    r3a5c71d r7bde91b  
    8181
    8282  while (d) {
    83     printf( "%-20s %8ld %8" PRIdoff_t " %6d   0x%04x\n",
     83    printf( "%-20s %8" PRIuino_t " %8" PRIdoff_t " %6d   0x%04x\n",
    8484       d->d_name, d->d_ino, d->d_off, d->d_reclen, d->d_type );
    8585    d = readdir(directory);
Note: See TracChangeset for help on using the changeset viewer.