diff options
author | 2002-06-24 11:33:17 +0000 | |
---|---|---|
committer | 2002-06-24 11:33:17 +0000 | |
commit | bac5d929706adafc634e20599e4b0771fbf98795 (patch) | |
tree | b39f14a6cb5ab9ab4b63645067013763e81405f1 | |
parent | 36c62f96dbe39cd6f43e58eeb3c7e41a2c7514c4 (diff) | |
download | pw-darwin-bac5d929706adafc634e20599e4b0771fbf98795.tar.gz pw-darwin-bac5d929706adafc634e20599e4b0771fbf98795.tar.zst pw-darwin-bac5d929706adafc634e20599e4b0771fbf98795.zip |
Print a long with %ld not %d. (We possibly should be using %j here, but
that can be fixed when the many other warnings here are being fixed.)
PR: 39741
Submitted by: Dan Lukes <dan@obluda.cz>
MFC after: 1 week
-rw-r--r-- | pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c index 3294e69..456c954 100644 --- a/pw/pw_user.c +++ b/pw/pw_user.c @@ -720,7 +720,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args) errx(EX_NOUSER, "user '%s' disappeared during update", a_name->val); grp = GETGRGID(pwd->pw_gid); - pw_log(cnf, mode, W_USER, "%s(%ld):%s(%d):%s:%s:%s", + pw_log(cnf, mode, W_USER, "%s(%ld):%s(%ld):%s:%s:%s", pwd->pw_name, (long) pwd->pw_uid, grp ? grp->gr_name : "unknown", (long) (grp ? grp->gr_gid : -1), pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell); |