diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-28 03:10:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-28 03:16:56 +0100 |
commit | bf371116f69261c17e47dc3dbb51cfaa3c9369ff (patch) | |
tree | bad4b11c474ecc5c652e12dbf159e6a7a67ba9a4 /src/sleep/Makefile | |
parent | 95066a906119998011d49d2602f063e74d97f680 (diff) |
log: change log_xyz_errno() calls to always return the negative error
This enables us to write things like this:
int open_some_file(void) {
fd = open("/dev/foobar", O_RDWR|O_CLOEXEC);
if (fd < 0)
return log_error_errno(errno, "Failed to reboot: %m");
return fd;
}
Which is function that returns -errno on failure, as well as printing an
error message, all in one line.
Diffstat (limited to 'src/sleep/Makefile')
0 files changed, 0 insertions, 0 deletions