diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-11-08 18:20:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-11-08 18:20:03 +0100 |
commit | de190aef08bb267b645205a747762df573b36834 (patch) | |
tree | 517b703941012766056f46442d36d93406b55ce9 /src/journal/journalctl.c | |
parent | 9b3c575ed90bb1165a192dfae2fb2330baab583c (diff) |
journal: implement multiple field matches
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r-- | src/journal/journalctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 3e5ee1af96..9220efdfec 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) { } } - SD_JOURNAL_FOREACH_BEGIN(j) { + SD_JOURNAL_FOREACH(j) { const void *data; size_t length; @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) { free(cursor); sd_journal_get_realtime_usec(j, &realtime); - sd_journal_get_monotonic_usec(j, &monotonic); + sd_journal_get_monotonic_usec(j, &monotonic, NULL); printf("realtime: %llu\n" "monotonic: %llu\n", (unsigned long long) realtime, @@ -80,7 +80,7 @@ int main(int argc, char *argv[]) { SD_JOURNAL_FOREACH_DATA(j, data, length) printf("\t%.*s\n", (int) length, (const char*) data); - } SD_JOURNAL_FOREACH_END(j); + } finish: if (j) |