Changeset bf61d3a in mainline for uspace/srv/taskmon/taskmon.c
- Timestamp:
- 2010-11-26T01:34:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 273b958
- Parents:
- 4b9a410 (diff), 7e752b2 (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
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskmon/taskmon.c
r4b9a410 rbf61d3a 60 60 thread = IPC_GET_ARG3(*call); 61 61 62 if (asprintf(&s_taskid, "%" PRIu TASKID, taskid) < 0) {62 if (asprintf(&s_taskid, "%" PRIu64, taskid) < 0) { 63 63 printf("Memory allocation failed.\n"); 64 64 return; 65 65 } 66 66 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); 68 69 69 70 fname = "/app/taskdump"; … … 72 73 char *dump_fname; 73 74 74 if (asprintf(&dump_fname, "/data/core%" PRIu TASKID, taskid) < 0) {75 if (asprintf(&dump_fname, "/data/core%" PRIu64, taskid) < 0) { 75 76 printf("Memory allocation failed.\n"); 76 77 return; 77 78 } 78 79 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); 80 81 rc = task_spawnl(NULL, fname, fname, "-c", dump_fname, "-t", s_taskid, 81 82 NULL); 82 83 #else 83 printf(NAME ": Executing %s -t %s\n", s_taskid);84 printf(NAME ": Executing %s -t %s\n", fname, s_taskid); 84 85 rc = task_spawnl(NULL, fname, fname, "-t", s_taskid, NULL); 85 86 #endif
Note:
See TracChangeset
for help on using the changeset viewer.