summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-07-21 20:58:57 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-07-21 20:58:57 +0000
commite3d3642295cf99596c8476e09ecab17534df8d1a (patch)
tree299e820bc663b3c75dddee5a302987df168816fc /gui
parentead5b590a12a061dd5306cab547dbd20358e640e (diff)
downloadgdm-e3d3642295cf99596c8476e09ecab17534df8d1a.tar.gz
Print a warning when filesystem type is NULL.
2008-07-21 William Jon McCann <jmccann@redhat.com> * gui/simple-greeter/gdm-user.c (get_filesystem_type): Print a warning when filesystem type is NULL. svn path=/trunk/; revision=6319
Diffstat (limited to 'gui')
-rw-r--r--gui/simple-greeter/gdm-user.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/simple-greeter/gdm-user.c b/gui/simple-greeter/gdm-user.c
index e412d820..237cc97b 100644
--- a/gui/simple-greeter/gdm-user.c
+++ b/gui/simple-greeter/gdm-user.c
@@ -718,7 +718,7 @@ get_filesystem_type (const char *path)
NULL,
&error);
if (file_info == NULL) {
- g_warning ("Unable to query filesystem type: %s", error->message);
+ g_warning ("Unable to query filesystem type for %s: %s", path, error->message);
g_error_free (error);
g_object_unref (file);
return NULL;
@@ -726,6 +726,9 @@ get_filesystem_type (const char *path)
filesystem_type = g_strdup (g_file_info_get_attribute_string (file_info,
G_FILE_ATTRIBUTE_FILESYSTEM_TYPE));
+ if (filesystem_type == NULL) {
+ g_warning ("GIO returned NULL filesystem type for %s", path);
+ }
g_object_unref (file);
g_object_unref (file_info);