mount: fewer warnings in a mount pt is non-mandatory
authorRobert Swiecki <robert@swiecki.net>
Sun, 28 May 2017 12:51:09 +0000 (14:51 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sun, 28 May 2017 12:51:09 +0000 (14:51 +0200)
mount.c

diff --git a/mount.c b/mount.c
index 1dbca037190f93f90e20ee49724e588ab62ec70e..8d9446e8f1174cf0beed52457bb3359afad08365 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -376,7 +376,11 @@ bool mountAddMountPt(struct nsjconf_t * nsjconf, const char *src, const char *ds
                        free((void *)p->src);
                        p->src = rp;
                } else {
-                       PLOG_W("realpath('%s') failed", p->src);
+                       if (mandatory) {
+                               PLOG_W("realpath('%s') failed", p->src);
+                       } else {
+                               PLOG_D("realpath('%s') failed", p->src);
+                       }
                }
        }