summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2002-06-24 11:33:17 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2002-06-24 11:33:17 +0000
commitb3f829fc0469ab063bdafc479f084ea00f5d2ac8 (patch)
tree8204ccb3fb1c6a0adabc11d13bf37312fa0133d5 /pw
parentc3a9c71d1da3d5ff0359720aa43aa8c3d74327b9 (diff)
downloadpw-darwin-b3f829fc0469ab063bdafc479f084ea00f5d2ac8.tar.gz
pw-darwin-b3f829fc0469ab063bdafc479f084ea00f5d2ac8.tar.zst
pw-darwin-b3f829fc0469ab063bdafc479f084ea00f5d2ac8.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
Diffstat (limited to 'pw')
-rw-r--r--pw/pw_user.c2
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);