diff options
author | peter <peter@FreeBSD.org> | 1999-05-06 22:21:31 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-06 22:21:31 +0000 |
commit | a9eb6e2eaab9880bf45ff0c3e2a0f232a6c186f8 (patch) | |
tree | 24f65893f9b44b7e799059ca9e977508edf6e7e8 /sys/dev/streams | |
parent | ffa341e9353ccb12592df6934abf09480676049c (diff) | |
download | FreeBSD-src-a9eb6e2eaab9880bf45ff0c3e2a0f232a6c186f8.zip FreeBSD-src-a9eb6e2eaab9880bf45ff0c3e2a0f232a6c186f8.tar.gz |
``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.
Diffstat (limited to 'sys/dev/streams')
-rw-r--r-- | sys/dev/streams/streams.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index eb5d469..fdf98bd 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 } } |