MCPcopy Create free account
hub / github.com/F-Stack/f-stack / device_print_prettyname

Function device_print_prettyname

freebsd/kern/subr_bus.c:2390–2398  ·  view source on GitHub ↗

* @brief Print the name of the device followed by a colon and a space * * @returns the number of characters printed */

Source from the content-addressed store, hash-verified

2388 * @returns the number of characters printed
2389 */
2390int
2391device_print_prettyname(device_t dev)
2392{
2393 const char *name = device_get_name(dev);
2394
2395 if (name == NULL)
2396 return (printf("unknown: "));
2397 return (printf("%s%d: ", name, device_get_unit(dev)));
2398}
2399
2400/**
2401 * @brief Print the name of the device followed by a colon, a space

Callers 3

device_rlprintfFunction · 0.85
device_probeFunction · 0.85
dmar_fault_taskFunction · 0.85

Calls 3

device_get_nameFunction · 0.85
device_get_unitFunction · 0.85
printfFunction · 0.70

Tested by

no test coverage detected