Changeset 195b7b3 in mainline for uspace/srv/hid/display/input.c
- Timestamp:
- 2020-06-22T15:25:48Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8e1f93
- Parents:
- 5271e4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/input.c
r5271e4c r195b7b3 35 35 #include <errno.h> 36 36 #include <io/input.h> 37 #include <io/log.h> 37 38 #include <loc.h> 38 #include <stdio.h>39 39 #include <str_error.h> 40 40 #include "display.h" … … 153 153 errno_t rc = loc_service_get_id(svc, &dsid, 0); 154 154 if (rc != EOK) { 155 printf("%s: Input service %s not found\n", NAME, svc); 155 log_msg(LOG_DEFAULT, LVL_ERROR, "Input service %s not found\n", 156 svc); 156 157 return rc; 157 158 } … … 159 160 sess = loc_service_connect(dsid, INTERFACE_INPUT, 0); 160 161 if (sess == NULL) { 161 printf("%s: Unable to connect to input service %s\n", NAME,162 svc);162 log_msg(LOG_DEFAULT, LVL_ERROR, 163 "Unable to connect to input service %s\n", svc); 163 164 return EIO; 164 165 } … … 168 169 if (rc != EOK) { 169 170 async_hangup(sess); 170 printf("%s: Unable to communicate with service %s (%s)\n", 171 NAME, svc, str_error(rc)); 171 log_msg(LOG_DEFAULT, LVL_ERROR, 172 "Unable to communicate with service %s (%s)\n", 173 svc, str_error(rc)); 172 174 return rc; 173 175 }
Note:
See TracChangeset
for help on using the changeset viewer.