From 5962b0fe4932a9908c97a44cb48921576940a3d3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 23 Apr 2016 18:23:36 +0100 Subject: [PATCH] Abolish uses of %+d (EE) BUG: triggered 'if (f[f_idx])' (EE) BUG: ../../os/log.c:565 in vpnprintf() (EE) Unsupported printf directive '+' --- src/mtstate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mtstate.c b/src/mtstate.c index 2cc0c32..348d214 100644 --- a/src/mtstate.c +++ b/src/mtstate.c @@ -286,23 +286,23 @@ static void mtstate_output(const struct MTState* ms, foreach_bit(i, ms->touch_used) { if (GETBIT(ms->touch[i].state, MT_RELEASED)) { timersub(&hs->evtime, &ms->touch[i].down, &tv); - xf86Msg(X_INFO, " released p(%d, %d) d(%+d, %+d) dir(%f) down(%llu) time(%lld)\n", + xf86Msg(X_INFO, " released p(%d, %d) d(%d, %d) dir(%f) down(%llu) time(%lld)\n", ms->touch[i].x, ms->touch[i].y, ms->touch[i].dx, ms->touch[i].dy, ms->touch[i].direction, timertoms(&ms->touch[i].down), timertoms(&tv)); } else if (GETBIT(ms->touch[i].state, MT_NEW)) { - xf86Msg(X_INFO, " new p(%d, %d) d(%+d, %+d) dir(%f) down(%llu)\n", + xf86Msg(X_INFO, " new p(%d, %d) d(%d, %d) dir(%f) down(%llu)\n", ms->touch[i].x, ms->touch[i].y, ms->touch[i].dx, ms->touch[i].dy, ms->touch[i].direction, timertoms(&ms->touch[i].down)); } else if (GETBIT(ms->touch[i].state, MT_INVALID)) { timersub(&hs->evtime, &ms->touch[i].down, &tv); - xf86Msg(X_INFO, " invalid p(%d, %d) d(%+d, %+d) dir(%f) down(%llu) time(%lld)\n", + xf86Msg(X_INFO, " invalid p(%d, %d) d(%d, %d) dir(%f) down(%llu) time(%lld)\n", ms->touch[i].x, ms->touch[i].y, ms->touch[i].dx, ms->touch[i].dy, ms->touch[i].direction, timertoms(&ms->touch[i].down), timertoms(&tv)); } else { - xf86Msg(X_INFO, " touching p(%d, %d) d(%+d, %+d) dir(%f) down(%llu)\n", + xf86Msg(X_INFO, " touching p(%d, %d) d(%d, %d) dir(%f) down(%llu)\n", ms->touch[i].x, ms->touch[i].y, ms->touch[i].dx, ms->touch[i].dy, ms->touch[i].direction, timertoms(&ms->touch[i].down)); }