From 777866439c6717489a266d1582e9bb2849e41c2b Mon Sep 17 00:00:00 2001 From: jmb Date: Mon, 12 Jun 2000 10:20:18 +0000 Subject: 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" --- sys/fs/specfs/spec_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/specfs') 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; -- cgit v1.1