diff options
author | jmb <jmb@FreeBSD.org> | 2000-06-12 10:20:18 +0000 |
---|---|---|
committer | jmb <jmb@FreeBSD.org> | 2000-06-12 10:20:18 +0000 |
commit | 777866439c6717489a266d1582e9bb2849e41c2b (patch) | |
tree | cda83cea564809d6fea0a0e4d32e51521aa53d09 /sys/fs/specfs | |
parent | 7050356974839dacbc771e9e3ebdaa63d1db6617 (diff) | |
download | FreeBSD-src-777866439c6717489a266d1582e9bb2849e41c2b.zip FreeBSD-src-777866439c6717489a266d1582e9bb2849e41c2b.tar.gz |
before this commit, specfs reported disk partitions
using decimal major and minor numbers. "ls -l" reports
disk partitions using decimal major numbers and hex
minor numbers.
make specfs use decimal major numbers and hex minor numbers,
just like "ls -l"
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 8fc7909..4b8f20c 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -150,7 +150,7 @@ spec_open(ap) if (*dev->si_name != '\0') printf("Device \"%s\" ", dev->si_name); else - printf("Device char-major=%d minor=%d ", + printf("Device char-major=%d minor=0x%x ", major(dev), minor(dev)); printf("opened in block mode, convert to char mode with /dev/MAKEDEV before 2000-07-01\n"); dev->si_flags |= SI_WHINED; |