Skip to content

Commit

Permalink
debug: print VG name in log messages for segment errors
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Kshirsagar <nkshirsa@redhat.com>
  • Loading branch information
Nikhil Kshirsagar authored and Zdenek Kabelac committed Dec 10, 2019
1 parent 4353823 commit e70d5d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/metadata/merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int lv_merge_segments(struct logical_volume *lv)

#define seg_error(msg) do { \
log_error("LV %s, segment %u invalid: %s for %s segment.", \
seg->lv->name, seg_count, (msg), lvseg_name(seg)); \
display_lvname(seg->lv), seg_count, (msg), lvseg_name(seg)); \
if ((*error_count)++ > ERROR_MAX) \
return; \
} while (0)
Expand All @@ -86,14 +86,14 @@ int lv_merge_segments(struct logical_volume *lv)
*/
#define raid_seg_error(msg) do { \
log_error("LV %s invalid: %s for %s segment", \
seg->lv->name, (msg), lvseg_name(seg)); \
display_lvname(seg->lv), (msg), lvseg_name(seg)); \
if ((*error_count)++ > ERROR_MAX) \
return; \
} while (0)

#define raid_seg_error_val(msg, val) do { \
log_error("LV %s invalid: %s (is %u) for %s segment", \
seg->lv->name, (msg), (val), lvseg_name(seg)); \
display_lvname(seg->lv), (msg), (val), lvseg_name(seg)); \
if ((*error_count)++ > ERROR_MAX) \
return; \
} while(0)
Expand Down

0 comments on commit e70d5d4

Please sign in to comment.