From efdb054c4a3263bfe387b45f797a926efeac55d8 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 14 Apr 2010 15:41:39 +0200 Subject: Add memory debug convenience routines Output parsing memory values, switched off by default. Signed-off-by: Henrik Rydberg --- src/memory.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/memory.c') diff --git a/src/memory.c b/src/memory.c index b213694..15b483c 100644 --- a/src/memory.c +++ b/src/memory.c @@ -25,3 +25,15 @@ void init_memory(struct Memory *mem) { memset(mem, 0, sizeof(struct Memory)); } + +void output_memory(const struct Memory *m) +{ + int i; + xf86Msg(X_INFO, "btdata: %04x\n", m->btdata); + xf86Msg(X_INFO, "pointing: %04x\n", m->pointing); + xf86Msg(X_INFO, "moving: %04x\n", m->moving); + xf86Msg(X_INFO, "npoint: %d\n", m->npoint); + xf86Msg(X_INFO, "ybar: %d\n", m->ybar); + xf86Msg(X_INFO, "move_time: %lld\n", m->move_time); + xf86Msg(X_INFO, "nmove: %d\n", m->nmove); +} -- cgit v1.2.3