vfs:shadow_copy2: fix a debug message
authorMichael Adam <obnox@samba.org>
Wed, 13 Jan 2016 00:37:24 +0000 (01:37 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 13 Jan 2016 09:56:42 +0000 (10:56 +0100)
The debug message for the mountpoint option was the
wrong way around. This fixes it, also converting
the message to use DBG_WARNING() while we're touching it.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Jan 13 10:56:42 CET 2016 on sn-devel-144

source3/modules/vfs_shadow_copy2.c

index d1673a427ef2e0e0b099ec3fe5f7ac50bc2214fb..93bca9c3da16908aab8f02c554edbcc7498df14d 100644 (file)
@@ -1900,11 +1900,12 @@ static int shadow_copy2_connect(struct vfs_handle_struct *handle,
                        char *p;
                        p = strstr(handle->conn->connectpath, mount_point);
                        if (p != handle->conn->connectpath) {
-                               DEBUG(1, ("Warning: mount_point (%s) is not a "
-                                         "subdirectory of the share root "
-                                         "(%s). Ignoring provided value.\n",
-                                         mount_point,
-                                         handle->conn->connectpath));
+                               DBG_WARNING("Warning: the share root (%s) is "
+                                           "not a subdirectory of the "
+                                           "specified mountpoint (%s). "
+                                           "Ignoring provided value.\n",
+                                           handle->conn->connectpath,
+                                           mount_point);
                                mount_point = NULL;
                        }
                }