]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
eu-stacktrace fixup: don't print startup banner on error
authorSerhei Makarov <serhei@serhei.io>
Thu, 22 Aug 2024 22:09:29 +0000 (18:09 -0400)
committerSerhei Makarov <serhei@serhei.io>
Thu, 22 Aug 2024 22:12:34 +0000 (18:12 -0400)
src/stacktrace.c

index dccde2b87927427726fa72a28be7a833a47bb494..3dcc5e0ed7d8403f530095f655025fa9c987953e 100644 (file)
@@ -1348,7 +1348,6 @@ Utility is a work-in-progress, see README.eu-stacktrace in the source branch.")
     };
 
   argp_parse(&argp, argc, argv, 0, NULL, NULL);
-  fprintf(stderr, "\n=== starting eu-stacktrace ===\n");
 
   /* TODO Also handle common expansions e.g. ~/foo instead of /home/user/foo. */
   if (strcmp (input_path, "-") == 0)
@@ -1378,6 +1377,8 @@ Utility is a work-in-progress, see README.eu-stacktrace in the source branch.")
   (void)output_format;
   (void)maxframes;
 #else
+  fprintf(stderr, "\n=== starting eu-stacktrace ===\n");
+
   /* TODO: For now, code the processing loop for sysprof only; generalize later. */
   assert (input_format == FORMAT_SYSPROF);
   assert (output_format == FORMAT_SYSPROF);