summaryrefslogtreecommitdiff
path: root/udev-remove.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-11-24 22:27:17 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:03 -0700
commitf7b4eca455c7dbf850d984892756f22dbd9ddc3d (patch)
tree55488d985521e5b05f47ff4847b52e0fcbae3fa5 /udev-remove.c
parent74894b53f8f9f4de6f269a5c0c0f8ea03baa1587 (diff)
[PATCH] overall whitespace + debug text conditioning
01-overall-whitespace+debug-text-conditioning.diff o cleanup whitespace o clarify a few comments o enclose all printed debug string values in ''
Diffstat (limited to 'udev-remove.c')
-rw-r--r--udev-remove.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev-remove.c b/udev-remove.c
index 1cf5d5134d..0f14a3d685 100644
--- a/udev-remove.c
+++ b/udev-remove.c
@@ -52,14 +52,14 @@ static char *get_name(char *path, int major, int minor)
goto exit;
}
- dbg("%s not found in database, falling back on default name", path);
+ dbg("'%s' not found in database, falling back on default name", path);
temp = strrchr(path, '/');
if (temp == NULL)
return NULL;
strncpy(name, &temp[1], sizeof(name));
exit:
- dbg("name is %s", name);
+ dbg("name is '%s'", name);
return &name[0];
}
@@ -74,7 +74,7 @@ static int delete_node(char *name)
strncpy(filename, udev_root, sizeof(filename));
strncat(filename, name, sizeof(filename));
- dbg("unlinking %s", filename);
+ dbg("unlinking '%s'", filename);
retval = unlink(filename);
if (retval) {
dbg("unlink(%s) failed with error '%s'",
@@ -104,7 +104,7 @@ static int delete_node(char *name)
filename, strerror(errno));
break;
}
- dbg("removed %s", filename);
+ dbg("removed '%s'", filename);
}
}
return retval;