Changeset eb522e8 in mainline for uspace/srv/taskmon/taskmon.c


Ignore:
Timestamp:
2011-06-01T08:43:42Z (15 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6c1f1
Parents:
9e2e715 (diff), e51a514 (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:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskmon/taskmon.c

    r9e2e715 reb522e8  
    3636
    3737#include <stdio.h>
    38 #include <ipc/ipc.h>
    3938#include <async.h>
    4039#include <ipc/services.h>
     
    6059        thread = IPC_GET_ARG3(*call);
    6160
    62         if (asprintf(&s_taskid, "%" PRIuTASKID, taskid) < 0) {
     61        if (asprintf(&s_taskid, "%" PRIu64, taskid) < 0) {
    6362                printf("Memory allocation failed.\n");
    6463                return;
    6564        }
    6665
    67         printf(NAME ": Task %" PRIuTASKID " fault in thread %p.\n", taskid, thread);
     66        printf(NAME ": Task %" PRIu64 " fault in thread %p.\n", taskid,
     67            (void *) thread);
    6868
    6969        fname = "/app/taskdump";
     
    7272        char *dump_fname;
    7373
    74         if (asprintf(&dump_fname, "/data/core%" PRIuTASKID, taskid) < 0) {
     74        if (asprintf(&dump_fname, "/data/core%" PRIu64, taskid) < 0) {
    7575                printf("Memory allocation failed.\n");
    7676                return;
    7777        }
    7878
    79         printf(NAME ": Executing %s -c %s -t %s\n", dump_fname, s_taskid);
     79        printf(NAME ": Executing %s -c %s -t %s\n", fname, dump_fname, s_taskid);
    8080        rc = task_spawnl(NULL, fname, fname, "-c", dump_fname, "-t", s_taskid,
    8181            NULL);
    8282#else
    83         printf(NAME ": Executing %s -t %s\n", s_taskid);
     83        printf(NAME ": Executing %s -t %s\n", fname, s_taskid);
    8484        rc = task_spawnl(NULL, fname, fname, "-t", s_taskid, NULL);
    8585#endif
Note: See TracChangeset for help on using the changeset viewer.