#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "print.h"
Functions | |
int | debugstrshare (const char *s1, const char *s2) |
void | dprintf (const char *sym, const char *args, ...) |
void | lprintf (int level, const char *args, ...) |
void | lprintff (int level, const char *args, ...) |
void | interest (const char *args, ...) |
void | print_panic (bool show_blabla, const char *args, va_list &ap) |
void | sxpanic (const char *args, ...) |
void | xpanic (const char *args, ...) |
void | showPercent (int level, int now, int total, int &last) |
void | doneShowPercent (int level) |
void | __pointer_test (void *ptr, const char *ptrname, const char *sfile, int sline) |
Variables | |
int | msglevel |
char | debugsyms [30] = "" |
time_t | last_percent_tt = (time_t)0 |
|
Use MEM() instead. For internal use only. |
|
|
|
|
|
prints out debugging info. if any character in sym matches any in debugsyms (resp. used syms are:
|
|
info about interesting things Prints out the given args with preceeding "Interesting:", but nothing more. |
|
Message printing
args is printed on screen if level is lower or equal to no LF is added |
|
Message printing
args is printed on screen if level is lower or equal to no LF is added. output buffer will be flushed |
|
|
|
|
|
small panic exit Prints out the given args with preceeding "PANIC:", but nothing more. function never returns. |
|
panic exit Prints out the given args with preceeding "PANIC:" and a brief description about what to do. Then exits. function never returns. |
|
string of symbols for the
|
|
|
|
verbosity level:
|