mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
cleanup: backtrace
Add debug backtrace.
This commit is contained in:
parent
966d1130db
commit
1bb0c5197f
@ -132,7 +132,7 @@ int print_flags(char *buffer, size_t size, enum pv_vg_lv_e type, int mask, uint6
|
|||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
if (!emit_to_buffer(&buffer, &size, "["))
|
if (!emit_to_buffer(&buffer, &size, "["))
|
||||||
return 0;
|
return_0;
|
||||||
|
|
||||||
for (f = 0; flags[f].mask; f++) {
|
for (f = 0; flags[f].mask; f++) {
|
||||||
if (status & flags[f].mask) {
|
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 (!first) {
|
||||||
if (!emit_to_buffer(&buffer, &size, ", "))
|
if (!emit_to_buffer(&buffer, &size, ", "))
|
||||||
return 0;
|
return_0;
|
||||||
} else
|
} else
|
||||||
first = 0;
|
first = 0;
|
||||||
|
|
||||||
if (!emit_to_buffer(&buffer, &size, "\"%s\"",
|
if (!emit_to_buffer(&buffer, &size, "\"%s\"",
|
||||||
flags[f].description))
|
flags[f].description))
|
||||||
return 0;
|
return_0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!emit_to_buffer(&buffer, &size, "]"))
|
if (!emit_to_buffer(&buffer, &size, "]"))
|
||||||
return 0;
|
return_0;
|
||||||
|
|
||||||
if (status)
|
if (status)
|
||||||
log_warn(INTERNAL_ERROR "Metadata inconsistency: "
|
log_warn(INTERNAL_ERROR "Metadata inconsistency: "
|
||||||
|
Loading…
Reference in New Issue
Block a user