Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153857506
D35927.id108523.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
784 B
Referenced Files
None
Subscribers
None
D35927.id108523.diff
View Options
Index: stand/i386/libi386/devicename.c
===================================================================
--- stand/i386/libi386/devicename.c
+++ stand/i386/libi386/devicename.c
@@ -175,26 +175,9 @@
char *
i386_fmtdev(void *vdev)
{
- struct i386_devdesc *dev = (struct i386_devdesc *)vdev;
- static char buf[128]; /* XXX device length constant? */
+ struct devdesc *dev = (struct devdesc *)vdev;
- switch(dev->dd.d_dev->dv_type) {
- case DEVT_NONE:
- strcpy(buf, "(no device)");
- break;
-
- case DEVT_CD:
- case DEVT_NET:
- sprintf(buf, "%s%d:", dev->dd.d_dev->dv_name, dev->dd.d_unit);
- break;
-
- case DEVT_DISK:
- return (disk_fmtdev(vdev));
-
- case DEVT_ZFS:
- return(zfs_fmtdev(vdev));
- }
- return(buf);
+ return (devformat(dev));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 7:28 AM (11 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32116288
Default Alt Text
D35927.id108523.diff (784 B)
Attached To
Mode
D35927: stand: i386_fmtdev can be reduced to devformat
Attached
Detach File
Event Timeline
Log In to Comment