Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102720858
D35916.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
383 B
Referenced Files
None
Subscribers
None
D35916.diff
View Options
diff --git a/stand/libsa/dev.c b/stand/libsa/dev.c
--- a/stand/libsa/dev.c
+++ b/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 != NULL)
+ 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
Sun, Nov 17, 8:25 AM (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14673225
Default Alt Text
D35916.diff (383 B)
Attached To
Mode
D35916: stand: Add devformat to return formatted string for a device
Attached
Detach File
Event Timeline
Log In to Comment