Remove some debug logging.

This commit is contained in:
Nicholas Marriott
2026-05-22 17:29:23 +01:00
parent 42fd51f59a
commit b40359ba7f

View File

@@ -1966,11 +1966,8 @@ screen_write_collect_clear(struct screen_write_ctx *ctx, u_int y, u_int n)
struct screen_write_cline *cl; struct screen_write_cline *cl;
u_int i; u_int i;
log_debug("%s: clearing rows %u..%u", __func__, y, y + n - 1);
for (i = y; i < y + n; i++) { for (i = y; i < y + n; i++) {
cl = &ctx->s->write_list[i]; cl = &ctx->s->write_list[i];
if (!TAILQ_EMPTY(&cl->items))
log_debug("%s: row %u had items!", __func__, i);
TAILQ_CONCAT(&screen_write_citem_freelist, &cl->items, entry); TAILQ_CONCAT(&screen_write_citem_freelist, &cl->items, entry);
} }
} }
@@ -1985,8 +1982,8 @@ screen_write_collect_scroll(struct screen_write_ctx *ctx, u_int bg)
char *saved; char *saved;
struct screen_write_citem *ci; struct screen_write_citem *ci;
log_debug("%s: at %u,%u (region %u-%u) cy=%u", __func__, s->cx, s->cy, log_debug("%s: at %u,%u (region %u-%u)", __func__, s->cx, s->cy,
s->rupper, s->rlower, s->cy); s->rupper, s->rlower);
screen_write_collect_clear(ctx, s->rupper, 1); screen_write_collect_clear(ctx, s->rupper, 1);
saved = ctx->s->write_list[s->rupper].data; saved = ctx->s->write_list[s->rupper].data;
@@ -2046,9 +2043,6 @@ screen_write_collect_flush(struct screen_write_ctx *ctx, int scroll_only,
ttyctx.n = ctx->scrolled; ttyctx.n = ctx->scrolled;
ttyctx.bg = ctx->bg; ttyctx.bg = ctx->bg;
tty_write(tty_cmd_scrollup, &ttyctx); tty_write(tty_cmd_scrollup, &ttyctx);
if (wp != NULL)
log_debug("%s: after scrollup, PANE_REDRAW=%d for %%%u",
__func__, !!(wp->flags & PANE_REDRAW), wp->id);
if (wp != NULL) if (wp != NULL)
ctx->wp->flags |= PANE_REDRAWSCROLLBAR; ctx->wp->flags |= PANE_REDRAWSCROLLBAR;
@@ -2084,16 +2078,6 @@ screen_write_collect_flush(struct screen_write_ctx *ctx, int scroll_only,
NULL); NULL);
last = UINT_MAX; last = UINT_MAX;
if (y == (u_int)s->cy || !TAILQ_EMPTY(&cl->items)) {
u_int dbg_cnt = 0;
struct screen_write_citem *dbg_ci;
TAILQ_FOREACH(dbg_ci, &cl->items, entry) dbg_cnt++;
log_debug("%s: row y=%u has %u items (wp_xoff=%d yoff=%d wsx=%u)",
__func__, y, dbg_cnt,
wp ? (int)wp->xoff : -1,
wp ? (int)wp->yoff : -1,
wsx);
}
TAILQ_FOREACH_SAFE(ci, &cl->items, entry, tmp) { TAILQ_FOREACH_SAFE(ci, &cl->items, entry, tmp) {
log_debug("collect list: x=%u (last %u), y=%u, used=%u", log_debug("collect list: x=%u (last %u), y=%u, used=%u",
ci->x, last, y, ci->used); ci->x, last, y, ci->used);