From: Lennart Poettering Date: Mon, 10 Jul 2017 19:41:02 +0000 (+0200) Subject: mount: add debug logging for the case when we knowingly ignore an error X-Git-Tag: v234~13^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a53dceb709f39ddbc25bfb910525c7d77c7a7dcf;p=thirdparty%2Fsystemd.git mount: add debug logging for the case when we knowingly ignore an error --- diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 21c3b1302d1..23083fd16ea 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -779,8 +779,10 @@ static int find_loop_device(const char *backing_file, char **loop_dev) { return -ENOMEM; r = read_one_line_file(sys, &fname); - if (r < 0) + if (r < 0) { + log_debug_errno(r, "Failed to read %s, ignoring: %m", sys); continue; + } if (files_same(fname, backing_file, 0) <= 0) continue;