aboutsummaryrefslogtreecommitdiffstats
path: root/src/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memory.c')
-rw-r--r--src/memory.c12
1 files changed, 12 insertions, 0 deletions
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);
+}