Changeset 6afc9d7 in mainline for uspace/srv/devman/match.c
- Timestamp:
- 2015-10-06T19:01:36Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0328987
- Parents:
- f1f7584
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/match.c
rf1f7584 r6afc9d7 31 31 */ 32 32 33 #include <errno.h> 33 34 #include <fcntl.h> 34 35 #include <io/log.h> … … 197 198 if (fd < 0) { 198 199 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to open `%s' for reading: %s.", 199 conf_path, str_error( fd));200 conf_path, str_error(errno)); 200 201 goto cleanup; 201 202 } … … 217 218 } 218 219 219 ssize_t read_bytes = read _all(fd, buf, len);220 ssize_t read_bytes = read(fd, buf, len); 220 221 if (read_bytes <= 0) { 221 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (% zd).", conf_path,222 read_bytes);222 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (%d).", conf_path, 223 errno); 223 224 goto cleanup; 224 225 }
Note:
See TracChangeset
for help on using the changeset viewer.