The remove_loop() function was silently failing without providing
any feedback to the user. This also fixes incorrect indentation
(spaces instead of tabs).
Signed-off-by: Karel Zak <kzak@redhat.com>
Reported-by: Benno Schulenberg <bensberg@telfort.nl>
static int remove_loop(struct loopdev_cxt *lc)
{
- if (loopcxt_remove_device(lc))
- return -1;
- return 0;
+ if (loopcxt_remove_device(lc)) {
+ warn(_("%s: remove failed"), loopcxt_get_device(lc));
+ return -1;
+ }
+ return 0;
}
static int set_scols_data(struct loopdev_cxt *lc, struct libscols_line *ln)