chiark / gitweb /
Abolish uses of %+d
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Apr 2016 17:23:36 +0000 (18:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Apr 2016 19:42:32 +0000 (20:42 +0100)
(EE) BUG: triggered 'if (f[f_idx])'
(EE) BUG: ../../os/log.c:565 in vpnprintf()
(EE) Unsupported printf directive '+'

src/mtstate.c

index 2cc0c326e8304e56ca9ecd3d32dc731d9bd62357..348d21479d36624d3cf036ae80087ad0d6986d39 100644 (file)
@@ -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));
                }