coredumpctl: add more debug output

It can be quite useful when somebody confuses _PID with COREDUMP_PID :).
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-08-02 10:49:07 -04:00
parent 4af6e458e5
commit 6c17bf04b9
2 changed files with 11 additions and 2 deletions
+8 -1
View File
@@ -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: