X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fjournal%2Fjournalctl.c;h=dfde0a935588ef126cbaa2a4a007dd65a627cce1;hp=c32028268a37a1935bbb8080747873e85dddbd86;hb=c1f906bd91c388fd84a006a56e1e6692e23f8ae3;hpb=43cf8388ea4ffed1801468d4b650d6e48eefce9e diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index c32028268..dfde0a935 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1508,7 +1508,7 @@ static int verify(sd_journal *j) { log_show_color(true); - HASHMAP_FOREACH(f, j->files, i) { + ORDERED_HASHMAP_FOREACH(f, j->files, i) { int k; usec_t first, validated, last; @@ -1603,7 +1603,7 @@ static int access_check(sd_journal *j) { assert(j); if (set_isempty(j->errors)) { - if (hashmap_isempty(j->files)) + if (ordered_hashmap_isempty(j->files)) log_notice("No journal files were found."); return 0; } @@ -1635,7 +1635,7 @@ static int access_check(sd_journal *j) { } #endif - if (hashmap_isempty(j->files)) { + if (ordered_hashmap_isempty(j->files)) { log_error("No journal files were opened due to insufficient permissions."); r = -EACCES; }