Changes in uspace/srv/hid/input/proto/mousedev.c [cc574511:cce8a83] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/proto/mousedev.c
rcc574511 rcce8a83 117 117 static int mousedev_proto_init(mouse_dev_t *mdev) 118 118 { 119 char *svc_name;120 121 if (asprintf(&svc_name, "devname%" PRIun, mdev->service_id) > 0)122 svc_name = (char *) "unknown";123 124 119 async_sess_t *sess = loc_service_connect(EXCHANGE_SERIALIZE, 125 mdev->s ervice_id, 0);120 mdev->svc_id, 0); 126 121 if (sess == NULL) { 127 printf("%s: Failed starting session with '%s'\n", NAME, svc_name); 122 printf("%s: Failed starting session with '%s'\n", NAME, 123 mdev->svc_name); 128 124 return -1; 129 125 } … … 132 128 if (mousedev == NULL) { 133 129 printf("%s: Failed allocating device structure for '%s'.\n", 134 NAME, svc_name);130 NAME, mdev->svc_name); 135 131 return -1; 136 132 } … … 141 137 if (exch == NULL) { 142 138 printf("%s: Failed starting exchange with '%s'.\n", NAME, 143 svc_name);139 mdev->svc_name); 144 140 mousedev_destroy(mousedev); 145 141 return -1; … … 151 147 if (rc != EOK) { 152 148 printf("%s: Failed creating callback connection from '%s'.\n", 153 NAME, svc_name);149 NAME, mdev->svc_name); 154 150 mousedev_destroy(mousedev); 155 151 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.