Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F104081039
D35916.id108512.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
412 B
Referenced Files
None
Subscribers
None
D35916.id108512.diff
View Options
Index: stand/libsa/dev.c
===================================================================
--- stand/libsa/dev.c
+++ stand/libsa/dev.c
@@ -56,3 +56,14 @@
{
return (EINVAL);
}
+
+char *
+devformat(struct devdesc *d)
+{
+ static char name[DEV_DEVLEN];
+
+ if (d->d_dev->dv_fmtdev)
+ return (d->d_dev->dv_fmtdev(d));
+ snprintf(name, sizeof(name), "%s%d:", d->d_dev->dv_name, d->d_unit);
+ return (name);
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 4, 7:16 AM (5 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15020114
Default Alt Text
D35916.id108512.diff (412 B)
Attached To
Mode
D35916: stand: Add devformat to return formatted string for a device
Attached
Detach File
Event Timeline
Log In to Comment