diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 14:26:31 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 14:26:31 +0100 |
commit | ff49bc3212cb07d850dcfd59940539773a0be26f (patch) | |
tree | 4d4209e4d84d6ca4533a103765d58cc9e429ea3d /src/udev/udev-rules.c | |
parent | c95f97a20f3b854109dc564da64950067b388aeb (diff) |
treewide: drop unnecessary trailing \n in log_*() calls
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r-- | src/udev/udev-rules.c | 18 |
1 files changed, 9 insertions, 9 deletions
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; } |