diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-21 10:40:28 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-31 14:56:46 +1000 |
commit | 6d575c1bbfdd62d623af3e36138566561bd981e0 (patch) | |
tree | a3406ab1754afbef811ed986b8f5b4fe23017816 | |
parent | 00dfdb9555a65917cf21fbf236c5e14ec733127b (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.c | 3 |
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__); } } |