* @brief Print the name of the device followed by a colon and a space * * @returns the number of characters printed */
| 2388 | * @returns the number of characters printed |
| 2389 | */ |
| 2390 | int |
| 2391 | device_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 |
no test coverage detected