Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 314473 | Differences between
and this patch

Collapse All | Expand All

(-)a/util/log.c (-4 / +7 lines)
Lines 223-234 void set_debug_flag(int v) Link Here
223
    debug_flag = v;
223
    debug_flag = v;
224
}
224
}
225
225
226
int set_debug_log_from_config(config_t c)
226
void set_debug_log_from_config(config_t c)
227
{
227
{
228
    return set_debug_file(config_get_one(c, "log.debug", 0));
228
    return set_debug_file(config_get_one(c, "log.debug", 0));
229
};
229
}
230
230
231
JABBERD2_API int set_debug_file(const char *filename)
231
JABBERD2_API void set_debug_file(const char *filename)
232
{
232
{
233
    // Close debug output file but not stderr
233
    // Close debug output file but not stderr
234
    if (debug_log_target != 0 &&
234
    if (debug_log_target != 0 &&
Lines 255-261 JABBERD2_API int set_debug_file(const char *filename) Link Here
255
        // set stderr
255
        // set stderr
256
        debug_log_target = stderr;
256
        debug_log_target = stderr;
257
    }
257
    }
258
};
258
}
259
259
260
#else /* DEBUG */
260
#else /* DEBUG */
261
void debug_log(const char *file, int line, const char *msgfmt, ...)
261
void debug_log(const char *file, int line, const char *msgfmt, ...)
Lines 263-266 void debug_log(const char *file, int line, const char *msgfmt, ...) Link Here
263
263
264
void set_debug_flag(int v)
264
void set_debug_flag(int v)
265
{ }
265
{ }
266
267
void set_debug_log_from_config(config_t c)
268
{ }
266
#endif
269
#endif
(-)a/util/util.h (-2 / +2 lines)
Lines 414-422 JABBERD2_API int hex_to_raw(char *in, int inlen, char *out); Link Here
414
JABBERD2_API int get_debug_flag(void);
414
JABBERD2_API int get_debug_flag(void);
415
JABBERD2_API void set_debug_flag(int v);
415
JABBERD2_API void set_debug_flag(int v);
416
JABBERD2_API void debug_log(const char *file, int line, const char *msgfmt, ...);
416
JABBERD2_API void debug_log(const char *file, int line, const char *msgfmt, ...);
417
JABBERD2_API int set_debug_file(const char *filename);
417
JABBERD2_API void set_debug_file(const char *filename);
418
418
419
JABBERD2_API int set_debug_log_from_config(config_t c);
419
JABBERD2_API void set_debug_log_from_config(config_t c);
420
420
421
#define ZONE __FILE__,__LINE__
421
#define ZONE __FILE__,__LINE__
422
#define MAX_DEBUG 8192
422
#define MAX_DEBUG 8192

Return to bug 314473