diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-06-24 11:33:17 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-06-24 11:33:17 +0000 |
commit | 46a7644f5889721614c7fd4a90a4ff46b839732e (patch) | |
tree | 8724188bcb9bad799ff69cfff252ff18a26b90d9 /usr.sbin | |
parent | 32bee004db6c06107a4986c715ce26531ef49d8d (diff) | |
download | FreeBSD-src-46a7644f5889721614c7fd4a90a4ff46b839732e.zip FreeBSD-src-46a7644f5889721614c7fd4a90a4ff46b839732e.tar.gz |
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 'usr.sbin')
-rw-r--r-- | usr.sbin/pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 3294e69..456c954 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/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); |