Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/ctl/kbdev.c

    rcc574511 rcce8a83  
    5050#include <loc.h>
    5151#include <stdlib.h>
     52#include <vfs/vfs_sess.h>
    5253#include <sys/typefmt.h>
    53 #include <vfs/vfs_sess.h>
    54 
    5554
    5655static int kbdev_ctl_init(kbd_dev_t *);
     
    9998        async_exch_t *exch;
    10099        kbdev_t *kbdev;
    101         char *svc_name;
    102100        int rc;
    103101
    104         if (asprintf(&svc_name, "devname%" PRIun, kdev->service_id) > 0)
    105                 svc_name = (char *) "unknown";
    106 
    107         sess = loc_service_connect(EXCHANGE_SERIALIZE, kdev->service_id, 0);
     102        sess = loc_service_connect(EXCHANGE_SERIALIZE, kdev->svc_id, 0);
    108103        if (sess == NULL) {
    109104                printf("%s: Failed starting session with '%s.'\n", NAME,
    110                     svc_name);
     105                    kdev->svc_name);
    111106                return -1;
    112107        }
     
    115110        if (kbdev == NULL) {
    116111                printf("%s: Failed allocating device structure for '%s'.\n",
    117                     NAME, svc_name);
     112                    NAME, kdev->svc_name);
    118113                return -1;
    119114        }
     
    124119        if (exch == NULL) {
    125120                printf("%s: Failed starting exchange with '%s'.\n", NAME,
    126                     svc_name);
     121                    kdev->svc_name);
    127122                kbdev_destroy(kbdev);
    128123                return -1;
     
    132127        if (rc != EOK) {
    133128                printf("%s: Failed creating callback connection from '%s'.\n",
    134                     NAME, svc_name);
     129                    NAME, kdev->svc_name);
    135130                async_exchange_end(exch);
    136131                kbdev_destroy(kbdev);
Note: See TracChangeset for help on using the changeset viewer.