Changeset 19f24fd in mainline for uspace/app/taskdump/taskdump.c


Ignore:
Timestamp:
2010-02-05T22:25:52Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dafa2d04
Parents:
83349b03 (diff), d42976c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskdump/taskdump.c

    r83349b03 r19f24fd  
    4141#include <task.h>
    4242#include <kernel/mm/as.h>
     43#include <sys/types.h>
     44#include <sys/typefmt.h>
    4345#include <libarch/istate.h>
    4446#include <macros.h>
     
    9395        rc = connect_task(task_id);
    9496        if (rc < 0) {
    95                 printf("Failed connecting to task %lld.\n", task_id);
     97                printf("Failed connecting to task %" PRIdTASKID ".\n", task_id);
    9698                return 1;
    9799        }
     
    100102        app_symtab = NULL;
    101103
    102         printf("Dumping task '%s' (task ID %lld).\n", app_name, task_id);
     104        printf("Dumping task '%s' (task ID %" PRIdTASKID ").\n", app_name, task_id);
    103105        autoload_syms();
    104106        putchar('\n');
     
    134136        if (rc < 0) {
    135137                printf("Error connecting\n");
    136                 printf("ipc_connect_task(%lld) -> %d ", task_id, rc);
     138                printf("ipc_connect_task(%" PRIdTASKID ") -> %d ", task_id, rc);
    137139                return rc;
    138140        }
     
    245247        printf("Threads:\n");
    246248        for (i = 0; i < n_threads; i++) {
    247                 printf(" [%d] hash: 0x%lx\n", 1+i, thash_buf[i]);
     249                printf(" [%d] hash: %p\n", 1+i, thash_buf[i]);
    248250
    249251                thread_dump(thash_buf[i]);
     
    289291        printf("Address space areas:\n");
    290292        for (i = 0; i < n_areas; i++) {
    291                 printf(" [%d] flags: %c%c%c%c base: 0x%lx size: 0x%lx\n", 1+i,
     293                printf(" [%d] flags: %c%c%c%c base: %p size: %p\n", 1+i,
    292294                    (ainfo_buf[i].flags & AS_AREA_READ) ? 'R' : '-',
    293295                    (ainfo_buf[i].flags & AS_AREA_WRITE) ? 'W' : '-',
     
    328330
    329331        sym_pc = fmt_sym_address(pc);
    330         printf("Thread 0x%lx crashed at %s. FP = 0x%lx\n", thash, sym_pc, fp);
     332        printf("Thread %p crashed at %s. FP = %p\n", thash, sym_pc, fp);
    331333        free(sym_pc);
    332334
Note: See TracChangeset for help on using the changeset viewer.