From 0b2be6049730e8dbab3d715633e967b4b2992f78 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 18 Nov 2015 09:15:45 +0100 Subject: [PATCH] cleanup: add stack traces --- libdm/libdm-report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 8ca0dc014..27044c004 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -949,7 +949,7 @@ static int _get_field(struct dm_report *rh, const char *field, size_t flen, return 0; if (!_get_canonical_field_name(field, flen, field_canon, DM_REPORT_FIELD_TYPE_ID_LEN, NULL)) - return 0; + return_0; for (f = 0; _implicit_report_fields[f].report_fn; f++) { if (_is_same_field(_implicit_report_fields[f].id, field_canon, rh->field_prefix)) { @@ -1063,7 +1063,7 @@ static int _key_match(struct dm_report *rh, const char *key, size_t len, } if (!_get_canonical_field_name(key, len, key_canon, DM_REPORT_FIELD_TYPE_ID_LEN, NULL)) - return 0; + return_0; for (f = 0; _implicit_report_fields[f].report_fn; f++) if (_is_same_field(_implicit_report_fields[f].id, key_canon, rh->field_prefix))