diff options
author | Damien Miller <djm@mindrot.org> | 2004-08-23 21:53:28 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-08-23 21:53:28 +1000 |
commit | b0419f26d0d75cf1d9b56c26142c5eb7956fef63 (patch) | |
tree | 8d694a4d64207d8d71ae2150233b59249f179796 /loginrec.c | |
parent | 7daf044aa2055885da74dc15d56b17c17291c322 (diff) |
- (djm) [loginrec.c] Typo and bad args in error messages; Spotted by
Martin.Kraemer AT Fujitsu-Siemens.com
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/loginrec.c b/loginrec.c index f07f65fce..3ec378b9a 100644 --- a/loginrec.c +++ b/loginrec.c @@ -158,7 +158,7 @@ #include "log.h" #include "atomicio.h" -RCSID("$Id: loginrec.c,v 1.58 2004/08/15 09:12:52 djm Exp $"); +RCSID("$Id: loginrec.c,v 1.59 2004/08/23 11:53:28 djm Exp $"); #ifdef HAVE_UTIL_H # include <util.h> @@ -832,12 +832,12 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut) pos = (off_t)tty * sizeof(struct utmp); if ((ret = lseek(fd, pos, SEEK_SET)) == -1) { - logit("%s: llseek: %s", strerror(errno)); + logit("%s: lseek: %s", __func__, strerror(errno)); return (0); } if (ret != pos) { - logit("%s: Couldn't seek to tty %s slot in %s", tty, - UTMP_FILE); + logit("%s: Couldn't seek to tty %d slot in %s", + __func__, tty, UTMP_FILE); return (0); } /* @@ -853,11 +853,11 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut) } if ((ret = lseek(fd, pos, SEEK_SET)) == -1) { - logit("%s: llseek: %s", __func__, strerror(errno)); + logit("%s: lseek: %s", __func__, strerror(errno)); return (0); } if (ret != pos) { - logit("%s: Couldn't seek to tty %s slot in %s", + logit("%s: Couldn't seek to tty %d slot in %s", __func__, tty, UTMP_FILE); return (0); } |