summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-11-18 09:15:45 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2015-11-18 22:17:26 +0100
commit0b2be6049730e8dbab3d715633e967b4b2992f78 (patch)
tree3fbcf362c97b44b4e4e200757ab808e163a6faa0
parente2b00b0a899376b3336e146dc3f4c077726d938a (diff)
downloadlvm2-0b2be6049730e8dbab3d715633e967b4b2992f78.tar.gz
cleanup: add stack traces
-rw-r--r--libdm/libdm-report.c4
1 files 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))