summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-07-02 14:50:43 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-07-02 14:51:05 -0700
commitc136f93dfad1a55c653e844d3cf25f804744275e (patch)
treea2aeaa9bd4a1f42b2c253ebb38337852003589b2
parentdc3093904d74a7c51d452439888c4f36e4274e9f (diff)
downloademacs-c136f93dfad1a55c653e844d3cf25f804744275e.tar.gz
Fix printf formats when DEBUG_TRACE_MOVE
Problem caught by gcc -DDEBUG_TRACE_MOVE -Wformat. * src/xdisp.c (move_it_in_display_line_to, move_it_to) (move_it_vertically) [DEBUG_TRACE_MOVE]: Fix printf format typos.
-rw-r--r--src/xdisp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 5fee5310ac3..4bda3ec481e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -9212,7 +9212,7 @@ move_it_in_display_line_to (struct it *it,
atx_it.sp = -1;
}
- TRACE_MOVE ((stderr, "move_it_in: continued at %d\n",
+ TRACE_MOVE ((stderr, "move_it_in: continued at %td\n",
IT_CHARPOS (*it)));
result = MOVE_LINE_CONTINUED;
break;
@@ -9577,10 +9577,10 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
break;
}
SAVE_IT (it_backup, *it, backup_data);
- TRACE_MOVE ((stderr, "move_it: from %d\n", IT_CHARPOS (*it)));
+ TRACE_MOVE ((stderr, "move_it: from %td\n", IT_CHARPOS (*it)));
skip2 = move_it_in_display_line_to (it, to_charpos, -1,
op & MOVE_TO_POS);
- TRACE_MOVE ((stderr, "move_it: to %d\n", IT_CHARPOS (*it)));
+ TRACE_MOVE ((stderr, "move_it: to %td\n", IT_CHARPOS (*it)));
line_height = it->max_ascent + it->max_descent;
TRACE_MOVE ((stderr, "move_it: line_height = %d\n", line_height));
@@ -9959,10 +9959,10 @@ move_it_vertically (struct it *it, int dy)
move_it_vertically_backward (it, -dy);
else
{
- TRACE_MOVE ((stderr, "move_it_v: from %d, %d\n", IT_CHARPOS (*it), dy));
+ TRACE_MOVE ((stderr, "move_it_v: from %td, %d\n", IT_CHARPOS (*it), dy));
move_it_to (it, ZV, -1, it->current_y + dy, -1,
MOVE_TO_POS | MOVE_TO_Y);
- TRACE_MOVE ((stderr, "move_it_v: to %d\n", IT_CHARPOS (*it)));
+ TRACE_MOVE ((stderr, "move_it_v: to %td\n", IT_CHARPOS (*it)));
/* If buffer ends in ZV without a newline, move to the start of
the line to satisfy the post-condition. */