diff options
author | phk <phk@FreeBSD.org> | 2005-03-15 14:08:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-03-15 14:08:10 +0000 |
commit | 9e33e49ed5fb9d536367b83fc9d49786bdf2c69b (patch) | |
tree | 2083a480419670631e54484e4366f9050d0bd745 /sys/kern/kern_lockf.c | |
parent | 57fd917aad75576de4048e68dcfbd17ea004045b (diff) | |
download | FreeBSD-src-9e33e49ed5fb9d536367b83fc9d49786bdf2c69b.zip FreeBSD-src-9e33e49ed5fb9d536367b83fc9d49786bdf2c69b.tar.gz |
Fix a debug message to print a usable device name rather than useless
major+minor tupple.
Diffstat (limited to 'sys/kern/kern_lockf.c')
-rw-r--r-- | sys/kern/kern_lockf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c index 1ffb418..b4c0ce3 100644 --- a/sys/kern/kern_lockf.c +++ b/sys/kern/kern_lockf.c @@ -794,10 +794,9 @@ lf_print(tag, lock) else printf("id %p", (void *)lock->lf_id); if (lock->lf_inode != (struct inode *)0) - printf(" in ino %ju on dev <%d, %d>, %s, start %jd, end %jd", + printf(" in ino %ju on dev <%s>, %s, start %jd, end %jd", (uintmax_t)lock->lf_inode->i_number, - major(lock->lf_inode->i_dev), - minor(lock->lf_inode->i_dev), + devtoname(lock->lf_inode->i_dev), lock->lf_type == F_RDLCK ? "shared" : lock->lf_type == F_WRLCK ? "exclusive" : lock->lf_type == F_UNLCK ? "unlock" : "unknown", |