Changeset e3787a0 in mainline


Ignore:
Timestamp:
2018-07-13T14:52:20Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
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)
Message:

Extra debug output in loader.

File:
1 edited

Legend:

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

    r5f97ef44 re3787a0  
    6262#include <vfs/inbox.h>
    6363
    64 #define DPRINTF(...)
     64#define DPRINTF(...) ((void) 0)
    6565
    6666/** File that will be loaded */
     
    107107                len = sizeof(task_id);
    108108
     109        DPRINTF("LOADER_GET_TASKID() = %lu\n", (unsigned long) task_id);
    109110        async_data_read_finalize(&call, &task_id, len);
    110111        async_answer_0(req, EOK);
     
    126127        }
    127128
     129        DPRINTF("LOADER_SET_CWD('%s')\n", cwd);
    128130        async_answer_0(req, rc);
    129131}
     
    156158                return;
    157159        }
     160
     161        DPRINTF("LOADER_SET_PROGRAM('%s')\n", name);
    158162
    159163        progname = name;
     
    217221                        free(argv);
    218222
     223                for (int i = 0; i < count; i++)
     224                        DPRINTF("LOADER_SET_ARGS('%s')\n", _argv[i]);
     225
    219226                argc = count;
    220227                arg_buf = buf;
     
    255262                return;
    256263        }
     264
     265        DPRINTF("LOADER_ADD_INBOX('%s')\n", name);
    257266
    258267        /*
     
    276285static int ldr_load(ipc_call_t *req)
    277286{
     287        DPRINTF("LOADER_LOAD()\n");
     288
    278289        int rc = elf_load(program_fd, &prog_info);
    279290        if (rc != EE_OK) {
     
    283294        }
    284295
     296        DPRINTF("Loaded.\n");
     297
    285298        elf_set_pcb(&prog_info, &pcb);
     299
     300        DPRINTF("PCB set.\n");
    286301
    287302        pcb.cwd = cwd;
     
    293308        pcb.inbox_entries = inbox_entries;
    294309
     310        DPRINTF("Answering.\n");
    295311        async_answer_0(req, EOK);
    296312        return 0;
Note: See TracChangeset for help on using the changeset viewer.