Changeset eb522e8 in mainline for uspace/srv/taskmon/taskmon.c
- Timestamp:
- 2011-06-01T08:43:42Z (15 years ago)
- 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. - File:
-
- 1 edited
-
uspace/srv/taskmon/taskmon.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskmon/taskmon.c
r9e2e715 reb522e8 36 36 37 37 #include <stdio.h> 38 #include <ipc/ipc.h>39 38 #include <async.h> 40 39 #include <ipc/services.h> … … 60 59 thread = IPC_GET_ARG3(*call); 61 60 62 if (asprintf(&s_taskid, "%" PRIu TASKID, taskid) < 0) {61 if (asprintf(&s_taskid, "%" PRIu64, taskid) < 0) { 63 62 printf("Memory allocation failed.\n"); 64 63 return; 65 64 } 66 65 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); 68 68 69 69 fname = "/app/taskdump"; … … 72 72 char *dump_fname; 73 73 74 if (asprintf(&dump_fname, "/data/core%" PRIu TASKID, taskid) < 0) {74 if (asprintf(&dump_fname, "/data/core%" PRIu64, taskid) < 0) { 75 75 printf("Memory allocation failed.\n"); 76 76 return; 77 77 } 78 78 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); 80 80 rc = task_spawnl(NULL, fname, fname, "-c", dump_fname, "-t", s_taskid, 81 81 NULL); 82 82 #else 83 printf(NAME ": Executing %s -t %s\n", s_taskid);83 printf(NAME ": Executing %s -t %s\n", fname, s_taskid); 84 84 rc = task_spawnl(NULL, fname, fname, "-t", s_taskid, NULL); 85 85 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
