Skip to contentSkip to conversation

master - cleanup: add stack traces

PATCH Zdenek Kabelac 1 participant 1 message Nov 19, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0b2be6049730e8dbab3d715633e967b4b2992f78
Commit:        0b2be6049730e8dbab3d715633e967b4b2992f78
Parent:        e2b00b0a899376b3336e146dc3f4c077726d938a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Nov 18 09:15:45 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Nov 18 22:17:26 2015 +0100

cleanup: add stack traces

---
 libdm/libdm-report.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
libdm/libdm-report.c +2 -2
index 8ca0dc0..27044c0 100644
@@ -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))