chiark / gitweb /
journalctl: fix verbose output when no logs are found
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jun 2013 01:50:56 +0000 (21:50 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jun 2013 02:38:29 +0000 (22:38 -0400)
commita72b63536f1da3a97677bf38590f22a962e5fe98
tree57c23b69a236457b8bd2bf16dd1538b8be626246
parent62220cf70e381f6e08390523e4696f7bc431f927
journalctl: fix verbose output when no logs are found

$ journalctl -o verbose _EXE=/quiet/binary -f
-- Logs begin at Sun 2013-03-17 17:28:22 EDT. --
Failed to get realtime timestamp: Cannot assign requested address

JOURNAL_FOREACH_DATA_RETVAL is added, which allows the caller
to get the return value from sd_journal_enumerate_data. I think
we might want to expose this macro like SD_JOURNAL_FOREACH_DATA,
but for now it is in journal-internal.h.

There's a change in behaviour for output_*, not only in
output_verbose, that errors in sd_j_enumerate_data are not silently
ignored anymore.

https://bugs.freedesktop.org/show_bug.cgi?id=56459
src/journal/journal-internal.h
src/journal/journalctl.c
src/shared/logs-show.c