Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107763222
D35924.id108520.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
D35924.id108520.diff
View Options
Index: stand/efi/libefi/devicename.c
===================================================================
--- stand/efi/libefi/devicename.c
+++ stand/efi/libefi/devicename.c
@@ -175,26 +175,8 @@
efi_fmtdev(void *vdev)
{
struct devdesc *dev = (struct devdesc *)vdev;
- static char buf[SPECNAMELEN + 1];
- switch(dev->d_dev->dv_type) {
- case DEVT_NONE:
- strcpy(buf, "(no device)");
- break;
-
- case DEVT_DISK:
- return (disk_fmtdev(vdev));
-
-#ifdef EFI_ZFS_BOOT
- case DEVT_ZFS:
- return (zfs_fmtdev(dev));
-#endif
- default:
- sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
- break;
- }
-
- return (buf);
+ return (devformat(dev));
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 1:01 AM (16 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15910821
Default Alt Text
D35924.id108520.diff (665 B)
Attached To
Mode
D35924: stand: efi_fmtdev can be reduced to devformat
Attached
Detach File
Event Timeline
Log In to Comment