| 2176 | } |
| 2177 | |
| 2178 | static void describe_fd(int fd) |
| 2179 | { |
| 2180 | struct sockaddr_storage sa; |
| 2181 | socklen_t addrlen = sizeof(sa); |
| 2182 | |
| 2183 | if (getsockname(fd, (void *)&sa, &addrlen) != 0) { |
| 2184 | status_broken("dev_report_fds: %i cannot get sockname (%s)", |
| 2185 | fd, strerror(errno)); |
| 2186 | return; |
| 2187 | } |
| 2188 | status_info("dev_report_fds: %i name %s", fd, addr2name(tmpctx, &sa, addrlen)); |
| 2189 | } |
| 2190 | |
| 2191 | static const char *io_plan_status_str(enum io_plan_status status) |
| 2192 | { |
no test coverage detected