Changes in uspace/srv/devman/match.c [6afc9d7:a60e90b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/match.c
r6afc9d7 ra60e90b 31 31 */ 32 32 33 #include <errno.h>34 33 #include <fcntl.h> 35 34 #include <io/log.h> … … 198 197 if (fd < 0) { 199 198 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to open `%s' for reading: %s.", 200 conf_path, str_error( errno));199 conf_path, str_error(fd)); 201 200 goto cleanup; 202 201 } … … 218 217 } 219 218 220 ssize_t read_bytes = read (fd, buf, len);219 ssize_t read_bytes = read_all(fd, buf, len); 221 220 if (read_bytes <= 0) { 222 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (% d).", conf_path,223 errno);221 log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (%zd).", conf_path, 222 read_bytes); 224 223 goto cleanup; 225 224 }
Note:
See TracChangeset
for help on using the changeset viewer.