summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-05-21 10:40:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-05-31 14:56:46 +1000
commit6d575c1bbfdd62d623af3e36138566561bd981e0 (patch)
treea3406ab1754afbef811ed986b8f5b4fe23017816
parent00dfdb9555a65917cf21fbf236c5e14ec733127b (diff)
Replace BUG_WARN with SynapticsMsg
BUG_WARN has a xserver dependency Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/synaptics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 36d26ca..020d424 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -1927,9 +1927,10 @@ UpdateTouchState(SynapticsPrivate *priv, struct SynapticsHwState *hw)
priv->open_slots[j] = priv->open_slots[j + 1];
}
- BUG_WARN(priv->num_active_touches == 0);
if (priv->num_active_touches > 0)
priv->num_active_touches--;
+ else
+ SynapticsMsg(priv, MSG_WARN, "BUG: priv->num_active_touches == 0 in %s", __func__);
}
}