discover: Print error message on mount failure
authorJeremy Kerr <jk@ozlabs.org>
Fri, 7 Mar 2014 01:10:16 +0000 (09:10 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 7 Mar 2014 01:10:16 +0000 (09:10 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c

index eaa85de166ce4228b707046ce3e344ec62c1f17d..80187ff49474a186cfb5b7e5bb7bceb0f4209404 100644 (file)
@@ -836,6 +836,9 @@ static int mount_device(struct discover_device *dev)
                return 0;
        }
 
+       pb_log("couldn't mount device %s: mount failed with rc %d\n",
+                       dev->device_path, rc);
+
        pb_rmdir_recursive(mount_base(), dev->mount_path);
 err_free:
        talloc_free(dev->mount_path);