Page MenuHomeFreeBSD

stand: Add devformat to return formatted string for a device
ClosedPublic

Authored by imp on Jul 25 2022, 8:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 30, 5:24 AM
Unknown Object (File)
Thu, Oct 30, 5:02 AM
Unknown Object (File)
Wed, Oct 29, 4:35 PM
Unknown Object (File)
Tue, Oct 28, 5:53 PM
Unknown Object (File)
Mon, Oct 27, 7:56 AM
Unknown Object (File)
Sun, Oct 26, 9:21 PM
Unknown Object (File)
Sun, Oct 26, 4:58 PM
Unknown Object (File)
Fri, Oct 24, 10:42 PM
Subscribers

Details

Summary

Use dv_fmtdev to return a formatted string for a device. If this is a
null pointer, return the device name and unit followed by a colon (eg
disk3:).

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jul 25 2022, 8:32 PM
tsoome added inline comments.
stand/libsa/dev.c
65

cstyle tells us: Test pointers against NULL

This revision is now accepted and ready to land.Jul 25 2022, 10:33 PM
This revision now requires review to proceed.Jul 25 2022, 10:45 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 11 2022, 4:28 PM
This revision was automatically updated to reflect the committed changes.