mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
coredump: fix style nits
Follow-up for 95f71807733
This commit is contained in:
parent
26c22c84e0
commit
9b7205f5dd
@ -729,9 +729,9 @@ static int print_info(FILE *file, sd_journal *j, bool need_space) {
|
|||||||
_cleanup_(json_variant_unrefp) JsonVariant *v = NULL;
|
_cleanup_(json_variant_unrefp) JsonVariant *v = NULL;
|
||||||
|
|
||||||
r = json_parse(pkgmeta_json, 0, &v, NULL, 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);
|
log_warning_errno(r, "json_parse on %s failed, ignoring: %m", pkgmeta_json);
|
||||||
} else {
|
else {
|
||||||
const char *module_name;
|
const char *module_name;
|
||||||
JsonVariant *module_json;
|
JsonVariant *module_json;
|
||||||
|
|
||||||
|
@ -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
|
* 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. */
|
* stores it separately in an internal library struct. */
|
||||||
id_len = dwfl_module_build_id(mod, &id, &id_vaddr);
|
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
|
/* 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
|
* anyway to find the package metadata. It's unlikely to have the latter
|
||||||
* without the former, but there's no hard rule. */
|
* without the former, but there's no hard rule. */
|
||||||
fprintf(c->f, "Found module %s without build-id\n", name);
|
fprintf(c->f, "Found module %s without build-id.\n", name);
|
||||||
} else {
|
else {
|
||||||
_cleanup_free_ char *id_hex = NULL, *id_hex_prefixed = NULL;
|
_cleanup_free_ char *id_hex = NULL, *id_hex_prefixed = NULL;
|
||||||
|
|
||||||
id_hex = hexmem(id, id_len);
|
id_hex = hexmem(id, id_len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user