summaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-09-28 18:53:36 +0000
committerEd Schouten <ed@FreeBSD.org>2011-09-28 18:53:36 +0000
commit9f365aa1d6aab0aca269b54fb5d216ac0e31a06f (patch)
treeefc748c3ad32a5751cb0627cfa2b151f69147a78 /sbin/fsdb
parent7d6060bd9c798d0dbf8310c48f82630d204e4fbe (diff)
downloadsrc-test2-9f365aa1d6aab0aca269b54fb5d216ac0e31a06f.tar.gz
src-test2-9f365aa1d6aab0aca269b54fb5d216ac0e31a06f.zip
Notes
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdbutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/fsdb/fsdbutil.c b/sbin/fsdb/fsdbutil.c
index 2c5710a80aa8..7ed78a7f39ee 100644
--- a/sbin/fsdb/fsdbutil.c
+++ b/sbin/fsdb/fsdbutil.c
@@ -126,12 +126,10 @@ printstat(const char *cp, ino_t inum, union dinode *dp)
puts("regular file");
break;
case IFBLK:
- printf("block special (%d,%d)",
- major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev)));
+ printf("block special (%#jx)", (uintmax_t)DIP(dp, di_rdev));
break;
case IFCHR:
- printf("character special (%d,%d)",
- major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev)));
+ printf("character special (%#jx)", DIP(dp, di_rdev));
break;
case IFLNK:
fputs("symlink",stdout);