From: Serhei Makarov Date: Thu, 22 Aug 2024 22:09:29 +0000 (-0400) Subject: eu-stacktrace fixup: don't print startup banner on error X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95cd62cdf3be3d504b92419857506898e067ed30;p=thirdparty%2Felfutils.git eu-stacktrace fixup: don't print startup banner on error --- 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);