summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 14:26:31 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 14:26:31 +0100
commitff49bc3212cb07d850dcfd59940539773a0be26f (patch)
tree4d4209e4d84d6ca4533a103765d58cc9e429ea3d /src/udev
parentc95f97a20f3b854109dc564da64950067b388aeb (diff)
treewide: drop unnecessary trailing \n in log_*() calls
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-event.c2
-rw-r--r--src/udev/udev-rules.c18
-rw-r--r--src/udev/udevd.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index 34f5348a2c..7799a20d20 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -781,7 +781,7 @@ static int rename_netif(struct udev_event *event) {
return r;
}
- log_debug("renamed network interface '%s' to '%s'\n", oldname, name);
+ log_debug("renamed network interface '%s' to '%s'", oldname, name);
return 0;
}
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index eb56e270c1..37508fa0a8 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -474,9 +474,9 @@ static uid_t add_uid(struct udev_rules *rules, const char *owner) {
r = get_user_creds(&owner, &uid, NULL, NULL, NULL);
if (r < 0) {
if (r == -ENOENT || r == -ESRCH)
- log_error("specified user '%s' unknown\n", owner);
+ log_error("specified user '%s' unknown", owner);
else
- log_error("error resolving user '%s': %s\n", owner, strerror(-r));
+ log_error("error resolving user '%s': %s", owner, strerror(-r));
}
/* grow buffer if needed */
@@ -521,9 +521,9 @@ static gid_t add_gid(struct udev_rules *rules, const char *group) {
r = get_group_creds(&group, &gid);
if (r < 0) {
if (r == -ENOENT || r == -ESRCH)
- log_error("specified group '%s' unknown\n", group);
+ log_error("specified group '%s' unknown", group);
else
- log_error("error resolving group '%s': %s\n", group, strerror(-r));
+ log_error("error resolving group '%s': %s", group, strerror(-r));
}
/* grow buffer if needed */
@@ -1072,7 +1072,7 @@ static int add_rule(struct udev_rules *rules, char *line,
_cleanup_free_ char *tmp;
tmp = cescape(buf);
- log_error("invalid key/value pair in file %s on line %u, starting at character %tu ('%s')\n",
+ log_error("invalid key/value pair in file %s on line %u, starting at character %tu ('%s')",
filename, lineno, linepos - line + 1, tmp);
if (linepos[1] == '#')
log_error("hint: comments can only start at beginning of line");
@@ -2277,9 +2277,9 @@ int udev_rules_apply_to_event(struct udev_rules *rules,
r = get_user_creds(&ow, &event->uid, NULL, NULL, NULL);
if (r < 0) {
if (r == -ENOENT || r == -ESRCH)
- log_error("specified user '%s' unknown\n", owner);
+ log_error("specified user '%s' unknown", owner);
else
- log_error("error resolving user '%s': %s\n", owner, strerror(-r));
+ log_error("error resolving user '%s': %s", owner, strerror(-r));
event->uid = 0;
}
@@ -2303,9 +2303,9 @@ int udev_rules_apply_to_event(struct udev_rules *rules,
r = get_group_creds(&gr, &event->gid);
if (r < 0) {
if (r == -ENOENT || r == -ESRCH)
- log_error("specified group '%s' unknown\n", group);
+ log_error("specified group '%s' unknown", group);
else
- log_error("error resolving group '%s': %s\n", group, strerror(-r));
+ log_error("error resolving group '%s': %s", group, strerror(-r));
event->gid = 0;
}
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index d1cc7788bc..a6258e714a 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1227,7 +1227,7 @@ int main(int argc, char *argv[]) {
udev_monitor_set_receive_buffer_size(monitor, 128 * 1024 * 1024);
- log_info("starting version " VERSION "\n");
+ log_info("starting version " VERSION);
udev_builtin_init(udev);