Changeset 973ef9fc in mainline for uspace/srv/taskmon/taskmon.c


Ignore:
Timestamp:
2010-12-25T21:20:28Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ee0c
Parents:
1bfd3d3 (diff), 09178b7f (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/srv/taskmon/taskmon.c

    r1bfd3d3 r973ef9fc  
    6060        thread = IPC_GET_ARG3(*call);
    6161
    62         if (asprintf(&s_taskid, "%" PRIuTASKID, taskid) < 0) {
     62        if (asprintf(&s_taskid, "%" PRIu64, taskid) < 0) {
    6363                printf("Memory allocation failed.\n");
    6464                return;
    6565        }
    6666
    67         printf(NAME ": Task %" PRIuTASKID " fault in thread %p.\n", taskid, thread);
     67        printf(NAME ": Task %" PRIu64 " fault in thread %p.\n", taskid,
     68            (void *) thread);
    6869
    6970        fname = "/app/taskdump";
     
    7273        char *dump_fname;
    7374
    74         if (asprintf(&dump_fname, "/data/core%" PRIuTASKID, taskid) < 0) {
     75        if (asprintf(&dump_fname, "/data/core%" PRIu64, taskid) < 0) {
    7576                printf("Memory allocation failed.\n");
    7677                return;
    7778        }
    7879
    79         printf(NAME ": Executing %s -c %s -t %s\n", dump_fname, s_taskid);
     80        printf(NAME ": Executing %s -c %s -t %s\n", fname, dump_fname, s_taskid);
    8081        rc = task_spawnl(NULL, fname, fname, "-c", dump_fname, "-t", s_taskid,
    8182            NULL);
    8283#else
    83         printf(NAME ": Executing %s -t %s\n", s_taskid);
     84        printf(NAME ": Executing %s -t %s\n", fname, s_taskid);
    8485        rc = task_spawnl(NULL, fname, fname, "-t", s_taskid, NULL);
    8586#endif
Note: See TracChangeset for help on using the changeset viewer.