webperimental: killstack decides stack protects.
[freeciv.git] / utility / bugs.c
bloba7b902a7dc10f01cd90c4769278c89e6bebe7ef8
1 /***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifdef HAVE_CONFIG_H
15 #include <fc_config.h>
16 #endif /* HAVE_CONFIG_H */
18 #include "fc_prehdrs.h"
20 #include <stdarg.h>
22 /* utility */
23 #include "fcintl.h"
24 #include "log.h"
26 #include "bugs.h"
28 /************************************************************************
29 Print request for bugreport
30 ************************************************************************/
31 void bugreport_request(const char *reason_format, ...)
33 va_list args;
34 char buf[1024];
36 va_start(args, reason_format);
37 vdo_log(__FILE__, __FUNCTION__, __FC_LINE__, FALSE, LOG_ERROR,
38 buf, sizeof(buf), reason_format, args);
39 va_end(args);
41 /* TRANS: No full stop after the URL, could cause confusion. */
42 log_error(_("Please report this message at %s"), BUG_URL);