Changeset 5bda2f96 in mainline for uspace/srv
- Timestamp:
- 2010-02-09T21:03:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 83b4cf53
- Parents:
- 696979ce (diff), a60b2d7 (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. - Location:
- uspace/srv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/file_bd/file_bd.c
r696979ce r5bda2f96 48 48 #include <devmap.h> 49 49 #include <sys/types.h> 50 #include <sys/typefmt.h> 50 51 #include <errno.h> 51 52 #include <bool.h> … … 207 208 int rc; 208 209 210 /* Check whether access is within device address bounds. */ 211 if (ba + cnt > num_blocks) { 212 printf(NAME ": Accessed blocks %" PRIuBN "-%" PRIuBN ", while " 213 "max block number is %" PRIuBN ".\n", ba, ba + cnt - 1, 214 num_blocks - 1); 215 return ELIMIT; 216 } 217 209 218 fibril_mutex_lock(&dev_lock); 210 219 … … 237 246 int rc; 238 247 248 /* Check whether access is within device address bounds. */ 249 if (ba + cnt > num_blocks) { 250 printf(NAME ": Accessed blocks %" PRIuBN "-%" PRIuBN ", while " 251 "max block numeber is %" PRIuBN ".\n", ba, ba + cnt - 1, 252 num_blocks - 1); 253 return ELIMIT; 254 } 255 239 256 fibril_mutex_lock(&dev_lock); 240 257 -
uspace/srv/taskmon/taskmon.c
r696979ce r5bda2f96 49 49 static void fault_event(ipc_callid_t callid, ipc_call_t *call) 50 50 { 51 char *argv[ 11];51 char *argv[6]; 52 52 char *fname; 53 53 char *dump_fname; … … 66 66 } 67 67 68 if (asprintf(&dump_fname, "/ scratch/d" PRIuTASKID ".txt", taskid) < 0) {68 if (asprintf(&dump_fname, "/data/core%" PRIuTASKID, taskid) < 0) { 69 69 printf("Memory allocation failed.\n"); 70 70 return; … … 73 73 printf(NAME ": Task %" PRIuTASKID " fault in thread %p.\n", taskid, thread); 74 74 75 #ifdef CONFIG_VERBOSE_DUMPS 76 argv[0] = "/app/redir"; 77 argv[1] = "-i"; 78 argv[2] = "/readme"; 79 argv[3] = "-o"; 80 argv[4] = dump_fname; 81 argv[5] = "--"; 82 argv[6] = "/app/taskdump"; 83 argv[7] = "-m"; 84 argv[8] = "-t"; 85 argv[9] = s_taskid; 86 argv[10] = NULL; 75 #ifdef CONFIG_WRITE_CORE_FILES 76 argv[0] = "/app/taskdump"; 77 argv[1] = "-c"; 78 argv[2] = dump_fname; 79 argv[3] = "-t"; 80 argv[4] = s_taskid; 81 argv[5] = NULL; 87 82 #else 88 83 argv[0] = "/app/taskdump";
Note:
See TracChangeset
for help on using the changeset viewer.