void dogechat_backtrace () { #ifdef HAVE_BACKTRACE void *trace[BACKTRACE_MAX]; int trace_size, i; char **symbols; #endif /* HAVE_BACKTRACE */ dogechat_backtrace_printf ("======= DogeChat backtrace ======="); dogechat_backtrace_printf ("(written by DogeChat %s, compiled on %s %s)", version_get_version_with_git (), version_get_compilation_date (), version_get_compilation_time ()); #ifdef HAVE_BACKTRACE trace_size = backtrace (trace, BACKTRACE_MAX); symbols = backtrace_symbols (trace, trace_size); for (i = 0; i < trace_size; i++) { dogechat_backtrace_addr2line (i + 1, trace[i], symbols[i]); } #else dogechat_backtrace_printf (" No backtrace info (no debug info available " "or no backtrace possible on your system)."); #endif /* HAVE_BACKTRACE */ dogechat_backtrace_printf ("======= End of backtrace ======="); }
void weechat_display_copyright () { string_iconv_fprintf (stdout, "\n"); string_iconv_fprintf (stdout, /* TRANSLATORS: "%s %s" after "compiled on" is date and time */ _("WeeChat %s Copyright %s, compiled on %s %s\n" "Developed by Sébastien Helleu <*****@*****.**> " "- %s"), version_get_version_with_git (), WEECHAT_COPYRIGHT_DATE, version_get_compilation_date (), version_get_compilation_time (), WEECHAT_WEBSITE); string_iconv_fprintf (stdout, "\n"); }
void log_init () { if (!log_open (NULL, "w")) { string_iconv_fprintf (stderr, _("Error: unable to create/append to log file (weechat.log)\n" "If another WeeChat process is using this file, try to run WeeChat\n" "with another home using \"--dir\" command line option.\n")); exit (1); } log_printf ("WeeChat %s (%s %s %s)", version_get_version_with_git (), _("compiled on"), version_get_compilation_date (), version_get_compilation_time ()); }