aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-05-06 22:21:31 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-05-06 22:21:31 +0000
commitdebf951175948e068cfd533d9a51c95bab1f2148 (patch)
tree82f38935f2fca1b98af7c5751eb5b09b2008ca87
parentbbdc01224fa74e1e8f3ef5d12c80cab2fa6dac28 (diff)
downloadsrc-debf951175948e068cfd533d9a51c95bab1f2148.tar.gz
src-debf951175948e068cfd533d9a51c95bab1f2148.zip
``fix'' the devfs_add_devswf() calls, the printf string wasn't factoring
in the unit number. I'm not so sure about this at all, the SVR4 systems I have access to have a mixture of names and often %03d format units.
Notes
Notes: svn path=/head/; revision=46604
-rw-r--r--sys/dev/streams/streams.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c
index eb5d4694517a..fdf98bd23b54 100644
--- a/sys/dev/streams/streams.c
+++ b/sys/dev/streams/streams.c
@@ -419,25 +419,25 @@ streams_drvinit(void *unused)
* devfs, right?
*/
scp->devfs_ptm = devfs_add_devswf(&streams_cdevsw, dev_ptm, DV_CHR,
- UID_ROOT, GID_KMEM, 0640, "ptmx", unit);
+ UID_ROOT, GID_KMEM, 0640, "ptmx%d", unit);
scp->devfs_arp = devfs_add_devswf(&streams_cdevsw, dev_arp, DV_CHR,
- UID_ROOT, GID_KMEM, 0666, "arp", unit);
+ UID_ROOT, GID_KMEM, 0666, "arp%d", unit);
scp->devfs_icmp = devfs_add_devswf(&streams_cdevsw, dev_icmp, DV_CHR,
- UID_ROOT, GID_KMEM, 0600, "icmp", unit);
+ UID_ROOT, GID_KMEM, 0600, "icmp%d", unit);
scp->devfs_ip = devfs_add_devswf(&streams_cdevsw, dev_ip, DV_CHR,
- UID_ROOT, GID_KMEM, 0600, "ip", unit);
+ UID_ROOT, GID_KMEM, 0600, "ip%d", unit);
scp->devfs_tcp = devfs_add_devswf(&streams_cdevsw, dev_tcp, DV_CHR,
- UID_ROOT, GID_KMEM, 0666, "tcp", unit);
+ UID_ROOT, GID_KMEM, 0666, "tcp%d", unit);
scp->devfs_udp = devfs_add_devswf(&streams_cdevsw, dev_udp, DV_CHR,
- UID_ROOT, GID_KMEM, 0666, "udp", unit);
+ UID_ROOT, GID_KMEM, 0666, "udp%d", unit);
scp->devfs_rawip = devfs_add_devswf(&streams_cdevsw, dev_rawip, DV_CHR,
- UID_ROOT, GID_KMEM, 0600, "rawip", unit);
+ UID_ROOT, GID_KMEM, 0600, "rawip%d", unit);
scp->devfs_unix_dgram = devfs_add_devswf(&streams_cdevsw, dev_unix_dgram, DV_CHR,
- UID_ROOT, GID_KMEM, 0666, "ticlts", unit);
+ UID_ROOT, GID_KMEM, 0666, "ticlts%d", unit);
scp->devfs_unix_stream = devfs_add_devswf(&streams_cdevsw, dev_unix_stream, DV_CHR,
- UID_ROOT, GID_KMEM, 0666, "ticots", unit);
+ UID_ROOT, GID_KMEM, 0666, "ticots%d", unit);
scp->devfs_unix_ord_stream = devfs_add_devswf(&streams_cdevsw, dev_unix_ord_stream, DV_CHR,
- UID_ROOT, GID_KMEM, 0666, "ticotsord", unit);
+ UID_ROOT, GID_KMEM, 0666, "ticotsord%d", unit);
#endif
}
}