Changeset 7bdcc45 in mainline for uspace/app/tester/ipc/register.c


Ignore:
Timestamp:
2010-12-16T16:38:49Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7837101
Parents:
8e58f94 (diff), eb221e5 (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.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/ipc/register.c

    r8e58f94 r7bdcc45  
    2727 */
    2828
     29#include <inttypes.h>
    2930#include <stdio.h>
    3031#include <unistd.h>
     
    4142        unsigned int i;
    4243       
    43         TPRINTF("Connected phone %#x accepting\n", icall->in_phone_hash);
     44        TPRINTF("Connected phone %" PRIun " accepting\n", icall->in_phone_hash);
    4445        ipc_answer_0(iid, EOK);
    4546        for (i = 0; i < MAX_CONNECTIONS; i++) {
     
    5556                int retval;
    5657               
    57                 switch (IPC_GET_METHOD(call)) {
     58                switch (IPC_GET_IMETHOD(call)) {
    5859                case IPC_M_PHONE_HUNGUP:
    59                         TPRINTF("Phone %#x hung up\n", icall->in_phone_hash);
     60                        TPRINTF("Phone %" PRIun " hung up\n", icall->in_phone_hash);
    6061                        retval = 0;
    6162                        break;
    6263                case IPC_TEST_METHOD:
    63                         TPRINTF("Received well known message from %#x: %#x\n",
     64                        TPRINTF("Received well known message from %" PRIun ": %" PRIun "\n",
    6465                            icall->in_phone_hash, callid);
    6566                        ipc_answer_0(callid, EOK);
    6667                        break;
    6768                default:
    68                         TPRINTF("Received unknown message from %#x: %#x\n",
     69                        TPRINTF("Received unknown message from %" PRIun ": %" PRIun "\n",
    6970                            icall->in_phone_hash, callid);
    7071                        ipc_answer_0(callid, ENOENT);
     
    7879        async_set_client_connection(client_connection);
    7980       
    80         ipcarg_t phonead;
     81        sysarg_t phonead;
    8182        int res = ipc_connect_to_me(PHONE_NS, IPC_TEST_SERVICE, 0, 0, &phonead);
    8283        if (res != 0)
Note: See TracChangeset for help on using the changeset viewer.