From: Zbigniew Jędrzejewski-Szmek Date: Fri, 2 Aug 2013 11:58:26 +0000 (-0400) Subject: coredumpctl: add more debug output X-Git-Tag: v207~186 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=6c17bf04b901a7ea8b4ec28fa635312fc2cd868a coredumpctl: add more debug output It can be quite useful when somebody confuses _PID with COREDUMP_PID :). --- diff --git a/Makefile.am b/Makefile.am index e35eaeb73d9..a4b4cb46a04 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3102,7 +3102,9 @@ systemd_coredumpctl_SOURCES = \ systemd_coredumpctl_LDADD = \ libsystemd-shared.la \ - libsystemd-journal.la + libsystemd-journal.la \ + libsystemd-journal-internal.la \ + libsystemd-id128-internal.la bin_PROGRAMS += \ systemd-coredumpctl diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c index e1bd8621e32..75c96cc0811 100644 --- a/src/journal/coredumpctl.c +++ b/src/journal/coredumpctl.c @@ -342,7 +342,7 @@ static int dump_list(sd_journal *j) { assert(j); /* The coredumps are likely to compressed, and for just - * listing them we don#t need to decompress them, so let's + * listing them we don't need to decompress them, so let's * pick a fairly low data threshold here */ sd_journal_set_data_threshold(j, 4096); @@ -557,6 +557,13 @@ int main(int argc, char *argv[]) { } } + if (_unlikely_(log_get_max_level() >= LOG_PRI(LOG_DEBUG))) { + _cleanup_free_ char *filter; + + filter = journal_make_match_string(j); + log_debug("Journal filter: %s", filter); + } + switch(arg_action) { case ACTION_LIST: