Changeset 1c1b082 in rtems


Ignore:
Timestamp:
10/10/14 08:26:50 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
8a3e8c1
Parents:
9e34ce0
git-author:
Sebastian Huber <sebastian.huber@…> (10/10/14 08:26:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/10/14 08:28:04)
Message:

shell/lsof: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_lsof.c

    r9e34ce0 r1c1b082  
    11/*
    2  * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2012-2014 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
    5  *  Obere Lagerstr. 30
     5 *  Dornierstr. 4
    66 *  82178 Puchheim
    77 *  Germany
     
    1818
    1919#include <stdio.h>
     20#include <inttypes.h>
    2021
    2122#include <rtems/libio_.h>
     
    4041    fprintf(
    4142      stdout,
    42       "%c %c %s %s -> %s root 0x%08x -> 0x%08x\n",
     43      "%c %c %s %s -> %s root 0x%08" PRIxPTR " -> 0x%08" PRIxPTR "\n",
    4344      mt_entry->mounted ? 'M' : 'U',
    4445      mt_entry->writeable ? 'W' : 'R',
     
    4647      mt_entry->target,
    4748      mt_entry->dev == NULL ? "none" : mt_entry->dev,
    48       (unsigned)mt_entry->mt_fs_root,
    49       (unsigned)mt_entry->mt_fs_root->location.node_access
     49      (uintptr_t) mt_entry->mt_fs_root,
     50      (uintptr_t) mt_entry->mt_fs_root->location.node_access
    5051    );
    5152
     
    6061      fprintf(
    6162        stdout,
    62         "\t0x%08x -> 0x%08x\n",
    63         (unsigned)loc,
    64         (unsigned)loc->node_access
     63        "\t0x%08" PRIxPTR " -> 0x%08" PRIxPTR "\n",
     64        (uintptr_t) loc,
     65        (uintptr_t) loc->node_access
    6566      );
    6667    }
Note: See TracChangeset for help on using the changeset viewer.