summaryrefslogtreecommitdiff
path: root/src/sysfs-utils.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-08-01 12:26:18 +0100
committerRichard Hughes <richard@hughsie.com>2008-08-01 12:26:18 +0100
commit81a4c5d82443b38f6618b2d5200005e0d9f93751 (patch)
treec915e5faebfb918b05a7032737634389f7ea0ff4 /src/sysfs-utils.c
parent4f934ad2dfa319c9bdfe0706442833df95cc1129 (diff)
add some debugging infrastructure
Diffstat (limited to 'src/sysfs-utils.c')
-rw-r--r--src/sysfs-utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sysfs-utils.c b/src/sysfs-utils.c
index 8a594f5..d9cb0f9 100644
--- a/src/sysfs-utils.c
+++ b/src/sysfs-utils.c
@@ -195,19 +195,19 @@ sysfs_resolve_link (const char *dir, const char *attribute)
full_path = g_build_filename (dir, attribute, NULL);
- //g_warning ("attribute='%s'", attribute);
- //g_warning ("full_path='%s'", full_path);
+ //dkp_warning ("attribute='%s'", attribute);
+ //dkp_warning ("full_path='%s'", full_path);
num = readlink (full_path, link_path, sizeof (link_path) - 1);
if (num != -1) {
char *absolute_path;
link_path[num] = '\0';
- //g_warning ("link_path='%s'", link_path);
+ //dkp_warning ("link_path='%s'", link_path);
absolute_path = g_build_filename (dir, link_path, NULL);
- //g_warning ("absolute_path='%s'", absolute_path);
+ //dkp_warning ("absolute_path='%s'", absolute_path);
if (realpath (absolute_path, resolved_path) != NULL) {
- //g_warning ("resolved_path='%s'", resolved_path);
+ //dkp_warning ("resolved_path='%s'", resolved_path);
found_it = TRUE;
}
g_free (absolute_path);