Changeset 33f86a3 in mainline for uspace/lib/c/arch


Ignore:
Timestamp:
2017-10-10T18:21:17Z (8 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a4fb8d60
Parents:
c46bfbc
Message:

Add PRI*PTR macros and correct a few printfs.

Location:
uspace/lib/c/arch
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/abs32le/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_abs32le_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId32  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu32  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx32  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId32  /**< Format for native_t. */
    3741#define PRIun  PRIu32  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/amd64/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_amd64_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId64  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu64  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx64  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId64  /**< Format for native_t. */
    3741#define PRIun  PRIu64  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/arm32/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_arm32_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId32  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu32  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx32  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId32  /**< Format for native_t. */
    3741#define PRIun  PRIu32  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/ia32/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_ia32_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId32  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu32  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx32  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId32  /**< Format for native_t. */
    3741#define PRIun  PRIu32  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/ia32/src/rtld/reloc.c

    rc46bfbc r33f86a3  
    3737#include <stdio.h>
    3838#include <stdlib.h>
     39#include <inttypes.h>
    3940
    4041#include <libarch/rtld/elf_dyn.h>
     
    7980        str_tab = m->dyn.str_tab;
    8081
    81         DPRINTF("address: 0x%x, entries: %d\n", (uintptr_t)rt, rt_entries);
     82        DPRINTF("address: 0x%" PRIxPTR ", entries: %zd\n", (uintptr_t)rt, rt_entries);
    8283       
    8384        for (i = 0; i < rt_entries; ++i) {
  • uspace/lib/c/arch/ia64/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_ia64_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId64  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu64  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx64  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId64  /**< Format for native_t. */
    3741#define PRIun  PRIu64  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/mips32/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_mips32_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId32  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu32  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx32  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId32  /**< Format for native_t. */
    3741#define PRIun  PRIu32  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/ppc32/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_ppc32_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId32  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu32  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx32  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId32  /**< Format for native_t. */
    3741#define PRIun  PRIu32  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/riscv64/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_riscv64_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId64  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu64  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx64  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId64  /**< Format for native_t. */
    3741#define PRIun  PRIu64  /**< Format for sysarg_t. */
  • uspace/lib/c/arch/sparc64/include/libarch/inttypes.h

    rc46bfbc r33f86a3  
    3434#define LIBC_sparc64_INTTYPES_H_
    3535
     36#define PRIdPTR  PRId64  /**< Format for intptr_t. */
     37#define PRIuPTR  PRIu64  /**< Format for uintptr_t. */
     38#define PRIxPTR  PRIx64  /**< Format for hexadecimal uintptr_t. */
     39
    3640#define PRIdn  PRId64  /**< Format for native_t. */
    3741#define PRIun  PRIu64  /**< Format for sysarg_t. */
Note: See TracChangeset for help on using the changeset viewer.