Changeset e3787a0 in mainline
- Timestamp:
- 2018-07-13T14:52:20Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 710c1e9
- Parents:
- 5f97ef44
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-06 13:27:35)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:52:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
r5f97ef44 re3787a0 62 62 #include <vfs/inbox.h> 63 63 64 #define DPRINTF(...) 64 #define DPRINTF(...) ((void) 0) 65 65 66 66 /** File that will be loaded */ … … 107 107 len = sizeof(task_id); 108 108 109 DPRINTF("LOADER_GET_TASKID() = %lu\n", (unsigned long) task_id); 109 110 async_data_read_finalize(&call, &task_id, len); 110 111 async_answer_0(req, EOK); … … 126 127 } 127 128 129 DPRINTF("LOADER_SET_CWD('%s')\n", cwd); 128 130 async_answer_0(req, rc); 129 131 } … … 156 158 return; 157 159 } 160 161 DPRINTF("LOADER_SET_PROGRAM('%s')\n", name); 158 162 159 163 progname = name; … … 217 221 free(argv); 218 222 223 for (int i = 0; i < count; i++) 224 DPRINTF("LOADER_SET_ARGS('%s')\n", _argv[i]); 225 219 226 argc = count; 220 227 arg_buf = buf; … … 255 262 return; 256 263 } 264 265 DPRINTF("LOADER_ADD_INBOX('%s')\n", name); 257 266 258 267 /* … … 276 285 static int ldr_load(ipc_call_t *req) 277 286 { 287 DPRINTF("LOADER_LOAD()\n"); 288 278 289 int rc = elf_load(program_fd, &prog_info); 279 290 if (rc != EE_OK) { … … 283 294 } 284 295 296 DPRINTF("Loaded.\n"); 297 285 298 elf_set_pcb(&prog_info, &pcb); 299 300 DPRINTF("PCB set.\n"); 286 301 287 302 pcb.cwd = cwd; … … 293 308 pcb.inbox_entries = inbox_entries; 294 309 310 DPRINTF("Answering.\n"); 295 311 async_answer_0(req, EOK); 296 312 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.