Changeset ff381a7 in mainline for uspace/srv/devman/match.c


Ignore:
Timestamp:
2015-11-02T20:54:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r3feeab2 rff381a7  
    3131 */
    3232
     33#include <errno.h>
    3334#include <fcntl.h>
    3435#include <io/log.h>
     
    197198        if (fd < 0) {
    198199                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));
    200201                goto cleanup;
    201202        }
     
    217218        }
    218219       
    219         ssize_t read_bytes = read_all(fd, buf, len);
     220        ssize_t read_bytes = read(fd, buf, len);
    220221        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);
    223224                goto cleanup;
    224225        }
Note: See TracChangeset for help on using the changeset viewer.