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


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/ia32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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) {
Note: See TracChangeset for help on using the changeset viewer.