comparison src/debug.c @ 6483:565339a6eb86

[gaim-migrate @ 6997] debug_printf() is gone for good. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 17 Aug 2003 07:38:31 +0000
parents 740303e8425b
children acc4376ce062
comparison
equal deleted inserted replaced
6482:16fcc379e484 6483:565339a6eb86
3 * @ingroup core 3 * @ingroup core
4 * 4 *
5 * gaim 5 * gaim
6 * 6 *
7 * Copyright (C) 2002-2003, Christian Hammond <chipx86@gnupdate.org> 7 * Copyright (C) 2002-2003, Christian Hammond <chipx86@gnupdate.org>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version. 12 * (at your option) any later version.
13 * 13 *
54 gaim_debug_vargs(level, category, format, args); 54 gaim_debug_vargs(level, category, format, args);
55 va_end(args); 55 va_end(args);
56 } 56 }
57 57
58 void 58 void
59 debug_printf(const char *format, ...)
60 {
61 va_list args;
62
63 g_return_if_fail(format != NULL);
64
65 va_start(args, format);
66 gaim_debug_vargs(GAIM_DEBUG_INFO, NULL, format, args);
67 va_end(args);
68 }
69
70 void
71 gaim_set_debug_ui_ops(GaimDebugUiOps *ops) 59 gaim_set_debug_ui_ops(GaimDebugUiOps *ops)
72 { 60 {
73 debug_ui_ops = ops; 61 debug_ui_ops = ops;
74 } 62 }
75 63