Changeset 06b2b7f in mainline for uspace/srv/loader/main.c
- Timestamp:
- 2009-01-07T22:33:35Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7ed2d8f
- Parents:
- 6974061
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
r6974061 r06b2b7f 60 60 #include <elf_load.h> 61 61 62 #define DPRINTF(...) 63 62 64 /** Pathname of the file that will be loaded */ 63 65 static char *pathname = NULL; … … 226 228 rc = elf_load_file(pathname, 0, &prog_info); 227 229 if (rc < 0) { 228 printf("Failed to load executable '%s'.\n", pathname);230 DPRINTF("Failed to load executable '%s'.\n", pathname); 229 231 ipc_answer_0(rid, EINVAL); 230 232 return 1; … … 245 247 rc = elf_load_file(prog_info.interp, 0, &interp_info); 246 248 if (rc < 0) { 247 printf("Failed to load interpreter '%s.'\n", prog_info.interp); 249 DPRINTF("Failed to load interpreter '%s.'\n", 250 prog_info.interp); 248 251 ipc_answer_0(rid, EINVAL); 249 252 return 1; … … 267 270 if (is_dyn_linked == true) { 268 271 /* Dynamically linked program */ 269 printf("run dynamic linker\n");270 printf("entry point: 0x%lx\n", interp_info.entry);272 DPRINTF("Run ELF interpreter.\n"); 273 DPRINTF("Entry point: 0x%lx\n", interp_info.entry); 271 274 close_console(); 272 275 … … 325 328 if ((callid & IPC_CALLID_NOTIFICATION) == 0 && 326 329 IPC_GET_METHOD(call) != IPC_M_PHONE_HUNGUP) { 327 printf("responding EINVAL to method %d\n",330 DPRINTF("Responding EINVAL to method %d.\n", 328 331 IPC_GET_METHOD(call)); 329 332 ipc_answer_0(callid, EINVAL);
Note:
See TracChangeset
for help on using the changeset viewer.