| 2128 | } |
| 2129 | |
| 2130 | static void describe_fd(int fd) |
| 2131 | { |
| 2132 | struct sockaddr_storage sa; |
| 2133 | socklen_t addrlen = sizeof(sa); |
| 2134 | |
| 2135 | if (getsockname(fd, (void *)&sa, &addrlen) != 0) { |
| 2136 | status_broken("dev_report_fds: %i cannot get sockname (%s)", |
| 2137 | fd, strerror(errno)); |
| 2138 | return; |
| 2139 | } |
| 2140 | status_info("dev_report_fds: %i name %s", fd, addr2name(tmpctx, &sa, addrlen)); |
| 2141 | } |
| 2142 | |
| 2143 | static const char *io_plan_status_str(enum io_plan_status status) |
| 2144 | { |
no test coverage detected