summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 18:17:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 18:17:23 +0000
commitf49ac914bb876c57cf9c071b9e9da98e9738f80c (patch)
treea2b5964f01dd5b9acdeddab7437c969a61929443
parent959df56c6f549b5d1185b30379cc8e9a727b5c7b (diff)
handle large ino_t
-rw-r--r--usr.sbin/rpc.lockd/lockd_lock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpc.lockd/lockd_lock.c b/usr.sbin/rpc.lockd/lockd_lock.c
index ef438a65104..c22fe6f68f6 100644
--- a/usr.sbin/rpc.lockd/lockd_lock.c
+++ b/usr.sbin/rpc.lockd/lockd_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lockd_lock.c,v 1.7 2010/07/23 07:47:13 jsg Exp $ */
+/* $OpenBSD: lockd_lock.c,v 1.8 2013/04/23 18:17:22 deraadt Exp $ */
/*
* Copyright (c) 2000 Manuel Bouyer.
@@ -532,10 +532,10 @@ do_lock(struct file_lock *fl, int block)
fl->client_name);
}
syslog(LOG_DEBUG, "lock from %s.%" PRIu32 " for file%s%s: "
- "dev %u ino %d (uid %d), flags %d",
+ "dev %u ino %llu (uid %d), flags %d",
fl->client_name, fl->client.svid,
fl->client.exclusive ? " (exclusive)":"", block ? " (block)":"",
- st.st_dev, st.st_ino, st.st_uid, fl->flags);
+ st.st_dev, (unsigned long long)st.st_ino, st.st_uid, fl->flags);
lflags = LOCK_NB;
if (fl->client.exclusive == 0)
lflags |= LOCK_SH;