From: Serhei Makarov Date: Mon, 11 Dec 2023 18:57:29 +0000 (-0500) Subject: eu-stacktrace WIP: minor formatting fixup X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2c7fea807a4fe9ff9c59bf4b0b63bbc2341dee3;p=thirdparty%2Felfutils.git eu-stacktrace WIP: minor formatting fixup --- diff --git a/src/stacktrace.c b/src/stacktrace.c index 5f2249998..1e1b2be27 100644 --- a/src/stacktrace.c +++ b/src/stacktrace.c @@ -382,6 +382,7 @@ sysprof_reader_next_frame (SysprofReader *reader) /* if (frame->type < 0 || frame->type >= SYSPROF_CAPTURE_FRAME_LAST) */ if (frame->type >= SYSPROF_CAPTURE_FRAME_LAST) return NULL; + return frame; } @@ -437,7 +438,7 @@ parse_opt (int key, char *arg __attribute__ ((unused)), } else { - argp_error (state, N_("Unsupported -m '%s', should be " MODE_OPTS "."), arg); + argp_error (state, N_("Unsupported -m '%s', should be " MODE_OPTS "."), arg); } break; @@ -448,7 +449,7 @@ parse_opt (int key, char *arg __attribute__ ((unused)), } else { - argp_error (state, N_("Unsupported -f '%s', should be " FORMAT_OPTS "."), arg); + argp_error (state, N_("Unsupported -f '%s', should be " FORMAT_OPTS "."), arg); } break; @@ -493,7 +494,7 @@ int sysprof_passthru_cb (SysprofCaptureFrame *frame, void *arg) { struct sysprof_passthru_info *spi = (struct sysprof_passthru_info *)arg; - sysprof_reader_bswap_frame (spi->reader, frame); /* reverse the prior bswap */ + sysprof_reader_bswap_frame (spi->reader, frame); /* reverse the earlier bswap */ ssize_t n_write = write (spi->output_fd, frame, frame->len); spi->pos += frame->len; assert ((spi->pos % SYSPROF_CAPTURE_ALIGN) == 0);