Changeset 1f199799 in rtems


Ignore:
Timestamp:
Jul 22, 2015, 7:03:44 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0910e9d4
Parents:
975e1918
git-author:
Sebastian Huber <sebastian.huber@…> (07/22/15 07:03:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/24/15 07:09:18)
Message:

monitor: Print addresses like identifiers

This avoids the "0x0xabc" output and is more compact.

Location:
cpukit/libmisc/monitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-prmisc.c

    r975e1918 r1f199799  
    4848
    4949int
    50 rtems_monitor_dump_addr(void *addr)
    51 {
    52     return fprintf(stdout,"0x%p", addr);
     50rtems_monitor_dump_addr(const void *addr)
     51{
     52    return fprintf(stdout,"%08" PRIxPTR, (intptr_t) addr);
    5353}
    5454
  • cpukit/libmisc/monitor/monitor.h

    r975e1918 r1f199799  
    404404int        rtems_monitor_dump_decimal(uint32_t   num);
    405405int        rtems_monitor_dump_hex(uint32_t   num);
    406 int        rtems_monitor_dump_addr(void *addr);
     406int        rtems_monitor_dump_addr(const void *addr);
    407407int        rtems_monitor_dump_id(rtems_id id);
    408408int        rtems_monitor_dump_name(rtems_id id);
Note: See TracChangeset for help on using the changeset viewer.