diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:56:46 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:56:46 -0300 |
commit | f70649a1785f0453c7af8c46e2d6712b07384994 (patch) | |
tree | 5355703c92163253c18b37ca46c464635ac06819 /darwin/DarwinCRT.c | |
parent | 907f8298a0337510f9f048df65a9f5d032f09d14 (diff) |
Standardize indentation.
Diffstat (limited to 'darwin/DarwinCRT.c')
-rw-r--r-- | darwin/DarwinCRT.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/darwin/DarwinCRT.c b/darwin/DarwinCRT.c index e998f000..3efb18a7 100644 --- a/darwin/DarwinCRT.c +++ b/darwin/DarwinCRT.c @@ -12,24 +12,24 @@ in the source distribution for its full text. #include <execinfo.h> void CRT_handleSIGSEGV(int sgn) { - (void) sgn; - CRT_done(); - #ifdef __APPLE__ - fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://hisham.hm/htop\n"); - #ifdef HAVE_EXECINFO_H - size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *)); - fprintf(stderr, "\n Please include in your report the following backtrace: \n"); - backtrace_symbols_fd(backtraceArray, size, 2); - fprintf(stderr, "\nAdditionally, in order to make the above backtrace useful,"); - fprintf(stderr, "\nplease also run the following command to generate a disassembly of your binary:"); - fprintf(stderr, "\n\n otool -tvV `which htop` > ~/htop.otool"); - fprintf(stderr, "\n\nand then attach the file ~/htop.otool to your bug report."); - fprintf(stderr, "\n\nThank you for helping to improve htop!\n\n"); - #endif - #else - fprintf(stderr, "\nUnfortunately, you seem to be using an unsupported platform!"); - fprintf(stderr, "\nPlease contact your platform package mantainer!\n\n"); - #endif - abort(); + (void) sgn; + CRT_done(); + #ifdef __APPLE__ + fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://hisham.hm/htop\n"); + #ifdef HAVE_EXECINFO_H + size_t size = backtrace(backtraceArray, sizeof(backtraceArray) / sizeof(void *)); + fprintf(stderr, "\n Please include in your report the following backtrace: \n"); + backtrace_symbols_fd(backtraceArray, size, 2); + fprintf(stderr, "\nAdditionally, in order to make the above backtrace useful,"); + fprintf(stderr, "\nplease also run the following command to generate a disassembly of your binary:"); + fprintf(stderr, "\n\n otool -tvV `which htop` > ~/htop.otool"); + fprintf(stderr, "\n\nand then attach the file ~/htop.otool to your bug report."); + fprintf(stderr, "\n\nThank you for helping to improve htop!\n\n"); + #endif + #else + fprintf(stderr, "\nUnfortunately, you seem to be using an unsupported platform!"); + fprintf(stderr, "\nPlease contact your platform package mantainer!\n\n"); + #endif + abort(); } |