summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/specfs/spec_vnops.c
diff options
context:
space:
mode:
authorjmb <jmb@FreeBSD.org>2000-06-12 10:20:18 +0000
committerjmb <jmb@FreeBSD.org>2000-06-12 10:20:18 +0000
commit777866439c6717489a266d1582e9bb2849e41c2b (patch)
treecda83cea564809d6fea0a0e4d32e51521aa53d09 /sys/miscfs/specfs/spec_vnops.c
parent7050356974839dacbc771e9e3ebdaa63d1db6617 (diff)
downloadFreeBSD-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/miscfs/specfs/spec_vnops.c')
-rw-r--r--sys/miscfs/specfs/spec_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index 8fc7909..4b8f20c 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/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;
OpenPOWER on IntegriCloud