From bac5d929706adafc634e20599e4b0771fbf98795 Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 24 Jun 2002 11:33:17 +0000 Subject: 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 MFC after: 1 week --- pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-56-ge451