1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

coredump: fix style nits

Follow-up for 95f71807733
This commit is contained in:
Luca Boccassi 2021-04-07 10:16:54 +01:00
parent 26c22c84e0
commit 9b7205f5dd
2 changed files with 5 additions and 5 deletions

View File

@ -729,9 +729,9 @@ static int print_info(FILE *file, sd_journal *j, bool need_space) {
_cleanup_(json_variant_unrefp) JsonVariant *v = NULL;
r = json_parse(pkgmeta_json, 0, &v, NULL, NULL);
if (r < 0) {
if (r < 0)
log_warning_errno(r, "json_parse on %s failed, ignoring: %m", pkgmeta_json);
} else {
else {
const char *module_name;
JsonVariant *module_json;

View File

@ -241,12 +241,12 @@ static int module_callback(Dwfl_Module *mod, void **userdata, const char *name,
* The build-id is easy, as libdwfl parses it during the dwfl_core_file_report() call and
* stores it separately in an internal library struct. */
id_len = dwfl_module_build_id(mod, &id, &id_vaddr);
if (id_len <= 0) {
if (id_len <= 0)
/* If we don't find a build-id, note it in the journal message, and try
* anyway to find the package metadata. It's unlikely to have the latter
* without the former, but there's no hard rule. */
fprintf(c->f, "Found module %s without build-id\n", name);
} else {
fprintf(c->f, "Found module %s without build-id.\n", name);
else {
_cleanup_free_ char *id_hex = NULL, *id_hex_prefixed = NULL;
id_hex = hexmem(id, id_len);