From 7ae86e2702dd52963ca8aa2a70f8abc3bb0e026e Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 25 Apr 2018 03:18:02 +0200 Subject: [PATCH] Add debugging code --- src/lib/vfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/vfs.c b/src/lib/vfs.c index 2f7f77f..ac6e35a 100644 --- a/src/lib/vfs.c +++ b/src/lib/vfs.c @@ -152,10 +152,16 @@ int browser_vfs_eject(char const * mountpoint) const unsigned int flags = G_SPAWN_SEARCH_PATH; GError * error = NULL; +#ifdef DEBUG + fprintf(stderr, "DEBUG: %s(\"%s\")\n", __func__, mountpoint); +#endif if(mountpoint == NULL) return error_set_code(-EINVAL, "%s", strerror(EINVAL)); if((argv[2] = _browser_vfs_get_device(mountpoint)) == NULL) return error_get_code(); +#ifdef DEBUG + fprintf(stderr, "DEBUG: %s() \"%s\"\n", __func__, argv[2]); +#endif if(g_spawn_async(NULL, argv, NULL, flags, NULL, NULL, NULL, &error) != TRUE) {