Changeset 84a1a54 in mainline for uspace/srv/hid/isdv4_tablet/main.c
- Timestamp:
- 2018-01-04T20:47:53Z (8 years ago)
- Children:
- facacc71
- Parents:
- cde999a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/isdv4_tablet/main.c
rcde999a r84a1a54 315 315 if (rc != EOK) { 316 316 printf("%s: Unable to register driver.\n", NAME); 317 return rc;317 return EXIT_RC(rc); 318 318 } 319 319 320 320 service_id_t service_id; 321 321 char *service_name; 322 rc = asprintf(&service_name, "mouse/isdv4-%" PRIun, svc_id); 323 if (rc < 0) { 322 if (asprintf(&service_name, "mouse/isdv4-%" PRIun, svc_id) < 0) { 324 323 printf(NAME ": Unable to create service name\n"); 325 return rc;324 return EXIT_RC(ENOMEM); 326 325 } 327 326 … … 329 328 if (rc != EOK) { 330 329 printf(NAME ": Unable to register service %s.\n", service_name); 331 return rc;330 return EXIT_RC(rc); 332 331 } 333 332
Note:
See TracChangeset
for help on using the changeset viewer.