]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
eu-stacktrace WIP: minor formatting fixup
authorSerhei Makarov <serhei@serhei.io>
Mon, 11 Dec 2023 18:57:29 +0000 (13:57 -0500)
committerSerhei Makarov <serhei@serhei.io>
Mon, 11 Dec 2023 18:57:29 +0000 (13:57 -0500)
src/stacktrace.c

index 5f22499981a131b7451536192c338cc9e4ced344..1e1b2be2737615773135826069a6d722d2225905 100644 (file)
@@ -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);