Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157147933
D35926.id108522.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
680 B
Referenced Files
None
Subscribers
None
D35926.id108522.diff
View Options
Index: stand/uboot/devicename.c
===================================================================
--- stand/uboot/devicename.c
+++ stand/uboot/devicename.c
@@ -163,24 +163,9 @@
char *
uboot_fmtdev(void *vdev)
{
- struct uboot_devdesc *dev = (struct uboot_devdesc *)vdev;
- static char buf[128];
+ struct devdesc *dev = (struct devdesc *)vdev;
- switch(dev->dd.d_dev->dv_type) {
- case DEVT_NONE:
- strcpy(buf, "(no device)");
- break;
-
- case DEVT_DISK:
-#ifdef LOADER_DISK_SUPPORT
- return (disk_fmtdev(vdev));
-#endif
-
- case DEVT_NET:
- sprintf(buf, "%s%d:", dev->dd.d_dev->dv_name, dev->dd.d_unit);
- break;
- }
- return(buf);
+ return(devformat(dev));
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 19, 6:53 PM (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33325447
Default Alt Text
D35926.id108522.diff (680 B)
Attached To
Mode
D35926: stand: uboot_fmtdev can be reduced to devformat
Attached
Detach File
Event Timeline
Log In to Comment