summaryrefslogtreecommitdiff
path: root/src/sysusers/sysusers.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-01-22 09:59:23 +0100
committerDaniel Mack <github@zonque.org>2016-01-22 09:59:23 +0100
commit620b63ec027ea2da3c5cda0297a1aff926e8ed8e (patch)
tree1e2642ebae20c841af300366d6a62b347072831e /src/sysusers/sysusers.c
parentefda7e594e14b06f8e91dbf580224b16e0f688d1 (diff)
parentdda65f56ff343fb63c6f5c9dbde1a88b22c0c41b (diff)
Merge pull request #2405 from zonque/sysusers
sysusers: use GID_FMT and UID_FMT instead of %d
Diffstat (limited to 'src/sysusers/sysusers.c')
-rw-r--r--src/sysusers/sysusers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
index 90a2111ec5..b1dd7e1913 100644
--- a/src/sysusers/sysusers.c
+++ b/src/sysusers/sysusers.c
@@ -416,7 +416,7 @@ static int write_files(void) {
}
if (hashmap_contains(todo_gids, GID_TO_PTR(gr->gr_gid))) {
- log_error("%s: Detected collision for GID %d.", group_path, gr->gr_gid);
+ log_error("%s: Detected collision for GID " GID_FMT ".", group_path, gr->gr_gid);
r = -EEXIST;
goto finish;
}
@@ -557,7 +557,7 @@ static int write_files(void) {
}
if (hashmap_contains(todo_uids, UID_TO_PTR(pw->pw_uid))) {
- log_error("%s: Detected collision for UID %d.", passwd_path, pw->pw_uid);
+ log_error("%s: Detected collision for UID " UID_FMT ".", passwd_path, pw->pw_uid);
r = -EEXIST;
goto finish;
}