Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/match.c

    r6afc9d7 ra60e90b  
    3131 */
    3232
    33 #include <errno.h>
    3433#include <fcntl.h>
    3534#include <io/log.h>
     
    198197        if (fd < 0) {
    199198                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));
    201200                goto cleanup;
    202201        }
     
    218217        }
    219218       
    220         ssize_t read_bytes = read(fd, buf, len);
     219        ssize_t read_bytes = read_all(fd, buf, len);
    221220        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);
    224223                goto cleanup;
    225224        }
Note: See TracChangeset for help on using the changeset viewer.