This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 450706d39dfc1b1bd00faa44edbf346fdcf0acf4 Author: Marco Casaroli <[email protected]> AuthorDate: Sun Nov 8 19:30:47 2026 +0100 netutils/iperf: Add the blank lines that nxstyle asks for. nxstyle reports "Missing blank line after declarations" four times in iperf.c. The errors are older than the next change, which touches the file. Whitespace only. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- netutils/iperf/iperf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netutils/iperf/iperf.c b/netutils/iperf/iperf.c index 97ebf639f..6395157f0 100644 --- a/netutils/iperf/iperf.c +++ b/netutils/iperf/iperf.c @@ -199,6 +199,7 @@ static int iperf_get_socket_error_code(int sockfd) static int iperf_show_socket_error_reason(FAR const char *str, int sockfd) { int err = errno; + if (err != 0) { printf("%s error, error code: %d, reason: %s\n", @@ -224,6 +225,7 @@ static void iperf_print_addr(FAR const char *str, FAR struct sockaddr *addr) case AF_INET: { FAR struct sockaddr_in *inaddr = (FAR struct sockaddr_in *)addr; + printf("%s: %s:%d\n", str, inet_ntoa(inaddr->sin_addr), htons(inaddr->sin_port)); return; @@ -233,6 +235,7 @@ static void iperf_print_addr(FAR const char *str, FAR struct sockaddr *addr) case AF_LOCAL: { FAR struct sockaddr_un *unaddr = (FAR struct sockaddr_un *)addr; + printf("%s: path=%s\n", str, unaddr->sun_path); return; } @@ -241,6 +244,7 @@ static void iperf_print_addr(FAR const char *str, FAR struct sockaddr *addr) { FAR struct sockaddr_rpmsg *rpaddr = (FAR struct sockaddr_rpmsg *)addr; + printf("%s: cpu=%s,name=%s\n", str, rpaddr->rp_cpu, rpaddr->rp_name); return;
