1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: backtrace

Add debug backtrace.
This commit is contained in:
Zdenek Kabelac 2017-05-29 12:43:07 +02:00
parent 966d1130db
commit 1bb0c5197f

View File

@ -132,7 +132,7 @@ int print_flags(char *buffer, size_t size, enum pv_vg_lv_e type, int mask, uint6
return_0;
if (!emit_to_buffer(&buffer, &size, "["))
return 0;
return_0;
for (f = 0; flags[f].mask; f++) {
if (status & flags[f].mask) {
@ -147,18 +147,18 @@ int print_flags(char *buffer, size_t size, enum pv_vg_lv_e type, int mask, uint6
if (!first) {
if (!emit_to_buffer(&buffer, &size, ", "))
return 0;
return_0;
} else
first = 0;
if (!emit_to_buffer(&buffer, &size, "\"%s\"",
flags[f].description))
return 0;
flags[f].description))
return_0;
}
}
if (!emit_to_buffer(&buffer, &size, "]"))
return 0;
return_0;
if (status)
log_warn(INTERNAL_ERROR "Metadata inconsistency: "