summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhei Makarov <[email protected]>2024-08-22 18:09:29 -0400
committerSerhei Makarov <[email protected]>2024-08-22 18:12:34 -0400
commit95cd62cdf3be3d504b92419857506898e067ed30 (patch)
tree4cafa2e791c4684de4240013d7733e9d51443cb2
parentb998344b386f770d6e146457eb0fa96830cda42d (diff)
eu-stacktrace fixup: don't print startup banner on error
-rw-r--r--src/stacktrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stacktrace.c b/src/stacktrace.c
index dccde2b8..3dcc5e0e 100644
--- a/src/stacktrace.c
+++ b/src/stacktrace.c
@@ -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);