Commit Graph

11 Commits

Author SHA1 Message Date
Dan McGee
29a31db629 Remove extra '\n' from red_printf() calls
red_printf() takes care of adding a newline to all messages; remove the
extra newline from all messages and macros that were doubling them up.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2012-02-14 18:19:29 +02:00
Alon Levy
cd595ed034 server: add prefix argument to red_printf_debug
printed before function name. No central location for prefixes.
Adding "WORKER", "ASYNC", "MAIN" since those were the current users.
2011-11-07 10:29:32 +02:00
Alon Levy
dceb04044b common/spice_common.h: red_printf_debug: fix wrong sign 2011-11-07 10:20:41 +02:00
Alon Levy
26623d0fab common: introduce red_printf_debug 2011-08-23 17:01:14 +03:00
Alon Levy
3aff246075 common: add backtrace via gstack or glibc backtrace
Add a backtrace printing function copied from xserver os/backtrace.c
that uses gstack, and if that isn't found then glibc's backtrace.
Used in ASSERT, tested on F15.
2011-07-19 20:33:25 +03:00
Christophe Fergeau
1726da731a move get_time_stamp to main_channel.c
There is only one user of get_time_stamp from spice_common.h so
it's not really useful to keep it there.
2011-05-03 14:44:12 +02:00
Christophe Fergeau
8b2ff2fbb3 use standard do { } while (0) for spice_common.h macros 2011-05-03 14:44:12 +02:00
Christophe Fergeau
7ba1c22a18 move WARN and WARN_ONCE to spice_common.h 2011-05-03 14:44:11 +02:00
Christophe Fergeau
bb00047691 common,server: use ASSERT from spice_common.h
spice_common.h provides an ASSERT macro, no need to duplicate it
in many places. For now client/debug.h keeps its own copy since
debug.h and spice_common.h have clashes on other macros which are
trickier to unify.
2011-05-03 14:44:11 +02:00
Christophe Fergeau
b999645295 use foo(void) instead of foo() in prototypes
In C, the latter isn't a prototype for a function with no arg,
but declares a function with an undefined number of args.
2011-05-02 11:24:44 +02:00
Alon Levy
db6835f616 server/common: introduce common/spice_common.h
move all the ASSERT/PANIC/PANIC_ON/red_error/red_printf* macros
to a common file to be used with ring.h that is going to be used externally
(by spice-gtk).
2011-03-02 17:27:51 +02:00