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

cache: fix previous change and correct ()

412f09ca33 missed parentheses.
This commit is contained in:
Zdenek Kabelac 2016-04-22 12:31:02 +02:00
parent 17ad884836
commit 4ddf5a11cf

View File

@ -47,11 +47,10 @@ const char *get_cache_mode_name(const struct lv_segment *seg)
if (seg->feature_flags & DM_CACHE_FEATURE_WRITEBACK) if (seg->feature_flags & DM_CACHE_FEATURE_WRITEBACK)
return "writeback"; return "writeback";
if (!seg->feature_flags & DM_CACHE_FEATURE_WRITETHROUGH) { if (!(seg->feature_flags & DM_CACHE_FEATURE_WRITETHROUGH))
log_error(INTERNAL_ERROR "LV %s has uknown feature flags %" PRIu64 ", " log_error(INTERNAL_ERROR "LV %s has uknown feature flags %" PRIu64 ", "
"returning writethrough instead.", "returning writethrough instead.",
display_lvname(seg->lv), seg->feature_flags); display_lvname(seg->lv), seg->feature_flags);
}
return "writethrough"; return "writethrough";
} }