Changeset e68765e in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2017-08-20T16:58:10Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88db88d
Parents:
3f74275
Message:

Store capability's handle inside of it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipc.c

    r3f74275 re68765e  
    913913        for_each_cap(task, cap, CAP_TYPE_PHONE) {
    914914                phone_t *phone = &cap->phone;
    915                 int cap_handle = cap_get_handle(task, cap);
    916915       
    917916                if (SYNCH_FAILED(mutex_trylock(&phone->lock))) {
    918                         printf("%-11d (mutex busy)\n", cap_handle);
     917                        printf("%-11d (mutex busy)\n", cap->handle);
    919918                        continue;
    920919                }
    921920               
    922921                if (phone->state != IPC_PHONE_FREE) {
    923                         printf("%-11d %7" PRIun " ", cap_handle,
     922                        printf("%-11d %7" PRIun " ", cap->handle,
    924923                            atomic_get(&phone->active_calls));
    925924                       
Note: See TracChangeset for help on using the changeset viewer.