Changeset 33f86a3 in mainline for uspace/lib/c/generic/rtld/dynamic.c


Ignore:
Timestamp:
2017-10-10T18:21:17Z (7 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/rtld/dynamic.c

    rc46bfbc r33f86a3  
    3636
    3737#include <stdio.h>
     38#include <inttypes.h>
    3839
    3940#include <rtld/elf_dyn.h>
     
    105106        info->dynamic = dyn_ptr;
    106107
    107         DPRINTF("str_tab=0x%x, soname_idx=0x%x, soname=0x%x\n",
     108        DPRINTF("str_tab=0x%" PRIxPTR ", soname_idx=0x%x, soname=0x%" PRIxPTR "\n",
    108109                (uintptr_t)info->soname, soname_idx, (uintptr_t)info->soname);
    109110        DPRINTF("soname='%s'\n", info->soname);
    110111        DPRINTF("rpath='%s'\n", info->rpath);
    111         DPRINTF("hash=0x%x\n", (uintptr_t)info->hash);
    112         DPRINTF("dt_rela=0x%x\n", (uintptr_t)info->rela);
    113         DPRINTF("dt_rela_sz=0x%x\n", (uintptr_t)info->rela_sz);
    114         DPRINTF("dt_rel=0x%x\n", (uintptr_t)info->rel);
    115         DPRINTF("dt_rel_sz=0x%x\n", (uintptr_t)info->rel_sz);
     112        DPRINTF("hash=0x%" PRIxPTR "\n", (uintptr_t)info->hash);
     113        DPRINTF("dt_rela=0x%" PRIxPTR "\n", (uintptr_t)info->rela);
     114        DPRINTF("dt_rela_sz=0x%" PRIxPTR "\n", (uintptr_t)info->rela_sz);
     115        DPRINTF("dt_rel=0x%" PRIxPTR "\n", (uintptr_t)info->rel);
     116        DPRINTF("dt_rel_sz=0x%" PRIxPTR "\n", (uintptr_t)info->rel_sz);
    116117
    117118        /*
Note: See TracChangeset for help on using the changeset viewer.