Changes in uspace/srv/hid/input/ctl/kbdev.c [cc574511:cce8a83] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/kbdev.c
rcc574511 rcce8a83 50 50 #include <loc.h> 51 51 #include <stdlib.h> 52 #include <vfs/vfs_sess.h> 52 53 #include <sys/typefmt.h> 53 #include <vfs/vfs_sess.h>54 55 54 56 55 static int kbdev_ctl_init(kbd_dev_t *); … … 99 98 async_exch_t *exch; 100 99 kbdev_t *kbdev; 101 char *svc_name;102 100 int rc; 103 101 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); 108 103 if (sess == NULL) { 109 104 printf("%s: Failed starting session with '%s.'\n", NAME, 110 svc_name);105 kdev->svc_name); 111 106 return -1; 112 107 } … … 115 110 if (kbdev == NULL) { 116 111 printf("%s: Failed allocating device structure for '%s'.\n", 117 NAME, svc_name);112 NAME, kdev->svc_name); 118 113 return -1; 119 114 } … … 124 119 if (exch == NULL) { 125 120 printf("%s: Failed starting exchange with '%s'.\n", NAME, 126 svc_name);121 kdev->svc_name); 127 122 kbdev_destroy(kbdev); 128 123 return -1; … … 132 127 if (rc != EOK) { 133 128 printf("%s: Failed creating callback connection from '%s'.\n", 134 NAME, svc_name);129 NAME, kdev->svc_name); 135 130 async_exchange_end(exch); 136 131 kbdev_destroy(kbdev);
Note:
See TracChangeset
for help on using the changeset viewer.