Changeset 06b2b7f in mainline for uspace/srv/loader/main.c


Ignore:
Timestamp:
2009-01-07T22:33:35Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ed2d8f
Parents:
6974061
Message:

Disable message displaying in loader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r6974061 r06b2b7f  
    6060#include <elf_load.h>
    6161
     62#define DPRINTF(...)
     63
    6264/** Pathname of the file that will be loaded */
    6365static char *pathname = NULL;
     
    226228        rc = elf_load_file(pathname, 0, &prog_info);
    227229        if (rc < 0) {
    228                 printf("Failed to load executable '%s'.\n", pathname);
     230                DPRINTF("Failed to load executable '%s'.\n", pathname);
    229231                ipc_answer_0(rid, EINVAL);
    230232                return 1;
     
    245247        rc = elf_load_file(prog_info.interp, 0, &interp_info);
    246248        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);
    248251                ipc_answer_0(rid, EINVAL);
    249252                return 1;
     
    267270        if (is_dyn_linked == true) {
    268271                /* 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);
    271274                close_console();
    272275
     
    325328                if ((callid & IPC_CALLID_NOTIFICATION) == 0 &&
    326329                    IPC_GET_METHOD(call) != IPC_M_PHONE_HUNGUP) {
    327                         printf("responding EINVAL to method %d\n",
     330                        DPRINTF("Responding EINVAL to method %d.\n",
    328331                            IPC_GET_METHOD(call));
    329332                        ipc_answer_0(callid, EINVAL);
Note: See TracChangeset for help on using the changeset viewer.