diff options
| author | Paul Eggert | 2019-07-02 14:50:43 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-02 14:51:05 -0700 |
| commit | c136f93dfad1a55c653e844d3cf25f804744275e (patch) | |
| tree | a2aeaa9bd4a1f42b2c253ebb38337852003589b2 /src | |
| parent | dc3093904d74a7c51d452439888c4f36e4274e9f (diff) | |
| download | emacs-c136f93dfad1a55c653e844d3cf25f804744275e.tar.gz emacs-c136f93dfad1a55c653e844d3cf25f804744275e.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
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, | |||
| 9212 | atx_it.sp = -1; | 9212 | atx_it.sp = -1; |
| 9213 | } | 9213 | } |
| 9214 | 9214 | ||
| 9215 | TRACE_MOVE ((stderr, "move_it_in: continued at %d\n", | 9215 | TRACE_MOVE ((stderr, "move_it_in: continued at %td\n", |
| 9216 | IT_CHARPOS (*it))); | 9216 | IT_CHARPOS (*it))); |
| 9217 | result = MOVE_LINE_CONTINUED; | 9217 | result = MOVE_LINE_CONTINUED; |
| 9218 | break; | 9218 | break; |
| @@ -9577,10 +9577,10 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos | |||
| 9577 | break; | 9577 | break; |
| 9578 | } | 9578 | } |
| 9579 | SAVE_IT (it_backup, *it, backup_data); | 9579 | SAVE_IT (it_backup, *it, backup_data); |
| 9580 | TRACE_MOVE ((stderr, "move_it: from %d\n", IT_CHARPOS (*it))); | 9580 | TRACE_MOVE ((stderr, "move_it: from %td\n", IT_CHARPOS (*it))); |
| 9581 | skip2 = move_it_in_display_line_to (it, to_charpos, -1, | 9581 | skip2 = move_it_in_display_line_to (it, to_charpos, -1, |
| 9582 | op & MOVE_TO_POS); | 9582 | op & MOVE_TO_POS); |
| 9583 | TRACE_MOVE ((stderr, "move_it: to %d\n", IT_CHARPOS (*it))); | 9583 | TRACE_MOVE ((stderr, "move_it: to %td\n", IT_CHARPOS (*it))); |
| 9584 | line_height = it->max_ascent + it->max_descent; | 9584 | line_height = it->max_ascent + it->max_descent; |
| 9585 | TRACE_MOVE ((stderr, "move_it: line_height = %d\n", line_height)); | 9585 | TRACE_MOVE ((stderr, "move_it: line_height = %d\n", line_height)); |
| 9586 | 9586 | ||
| @@ -9959,10 +9959,10 @@ move_it_vertically (struct it *it, int dy) | |||
| 9959 | move_it_vertically_backward (it, -dy); | 9959 | move_it_vertically_backward (it, -dy); |
| 9960 | else | 9960 | else |
| 9961 | { | 9961 | { |
| 9962 | TRACE_MOVE ((stderr, "move_it_v: from %d, %d\n", IT_CHARPOS (*it), dy)); | 9962 | TRACE_MOVE ((stderr, "move_it_v: from %td, %d\n", IT_CHARPOS (*it), dy)); |
| 9963 | move_it_to (it, ZV, -1, it->current_y + dy, -1, | 9963 | move_it_to (it, ZV, -1, it->current_y + dy, -1, |
| 9964 | MOVE_TO_POS | MOVE_TO_Y); | 9964 | MOVE_TO_POS | MOVE_TO_Y); |
| 9965 | TRACE_MOVE ((stderr, "move_it_v: to %d\n", IT_CHARPOS (*it))); | 9965 | TRACE_MOVE ((stderr, "move_it_v: to %td\n", IT_CHARPOS (*it))); |
| 9966 | 9966 | ||
| 9967 | /* If buffer ends in ZV without a newline, move to the start of | 9967 | /* If buffer ends in ZV without a newline, move to the start of |
| 9968 | the line to satisfy the post-condition. */ | 9968 | the line to satisfy the post-condition. */ |