diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-09-10 08:20:24 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-09-10 08:27:30 -0400 |
commit | 289f910e16d0a962e128979b67fed5f2ef668e00 (patch) | |
tree | d062533f52bbf5257cdc1830857827bbe072fdeb /src/initctl | |
parent | keymap: Add Asus WMI module (diff) | |
download | systemd-289f910e16d0a962e128979b67fed5f2ef668e00.tar.gz systemd-289f910e16d0a962e128979b67fed5f2ef668e00.tar.bz2 systemd-289f910e16d0a962e128979b67fed5f2ef668e00.zip |
journald: be a bit more verbose when vacuuming
Vacuuming behaviour is a bit confusing, and/or we have some bugs,
so those additional messages should help to find out what's going
on. Also, rotation of journal files shouldn't be happening too
often, so the level of the messages is bumped to info, so that
they'll be logged under normal operation.
Diffstat (limited to 'src/initctl')
-rw-r--r-- | src/initctl/initctl.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c index 5fbce4a9a..ec3304050 100644 --- a/src/initctl/initctl.c +++ b/src/initctl/initctl.c @@ -223,8 +223,10 @@ static int fifo_process(Fifo *f) { assert(f); errno = EIO; - if ((l = read(f->fd, ((uint8_t*) &f->buffer) + f->bytes_read, sizeof(f->buffer) - f->bytes_read)) <= 0) { - + l = read(f->fd, + ((uint8_t*) &f->buffer) + f->bytes_read, + sizeof(f->buffer) - f->bytes_read); + if (l <= 0) { if (errno == EAGAIN) return 0; @@ -372,8 +374,8 @@ static int process_event(Server *s, struct epoll_event *ev) { } f = (Fifo*) ev->data.ptr; - - if ((r = fifo_process(f)) < 0) { + r = fifo_process(f); + if (r < 0) { log_info("Got error on fifo: %s", strerror(-r)); fifo_free(f); return r; |