From 6f9b161b247ecf15a1942841e8b94fe27fecbbec Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Thu, 10 Jun 2021 11:28:24 +1000 Subject: Use the PACKAGE macro rather than htop directly, for overriding Allow other projects (PCP) to be able to ship an htop binary which uses the custom name (pcp-htop) in several diagnostics so that its clear which (if any!) binary failed. --- CRT.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'CRT.c') diff --git a/CRT.c b/CRT.c index 81671de6..5353c7b7 100644 --- a/CRT.c +++ b/CRT.c @@ -929,7 +929,7 @@ void CRT_handleSIGSEGV(int signal) { "Please check at https://htop.dev/issues whether this issue has already been reported.\n" "If no similar issue has been reported before, please create a new issue with the following information:\n" "\n" - "- Your htop version (htop --version)\n" + "- Your "PACKAGE" version ("PACKAGE" --version)\n" "- Your OS and kernel version (uname -a)\n" "- Your distribution and release (lsb_release -a)\n" "- Likely steps to reproduce (How did it happened?)\n" @@ -977,15 +977,15 @@ void CRT_handleSIGSEGV(int signal) { "---\n" "\n" "To make the above information more practical to work with,\n" - "you should provide a disassembly of your binary.\n" + "please also provide a disassembly of your "PACKAGE" binary.\n" "This can usually be done by running the following command:\n" "\n" ); #ifdef HTOP_DARWIN - fprintf(stderr, " otool -tvV `which htop` > ~/htop.otool\n"); + fprintf(stderr, " otool -tvV `which "PACKAGE"` > ~/htop.otool\n"); #else - fprintf(stderr, " objdump -d -S -w `which htop` > ~/htop.objdump\n"); + fprintf(stderr, " objdump -d -S -w `which "PACKAGE"` > ~/htop.objdump\n"); #endif fprintf(stderr, @@ -998,9 +998,9 @@ void CRT_handleSIGSEGV(int signal) { fprintf(stderr, "Running this program with debug symbols or inside a debugger may provide further insights.\n" "\n" - "Thank you for helping to improve htop!\n" + "Thank you for helping to improve "PACKAGE"!\n" "\n" - "htop " VERSION " aborting.\n" + PACKAGE " " VERSION " aborting.\n" "\n" ); -- cgit v1.2.3