summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Russon <rich@flatcap.org>2023-10-06 13:05:04 +0100
committerRichard Russon <rich@flatcap.org>2023-10-06 13:26:40 +0100
commit32f64d471c993bd4b25367c593b796cb3c5d2aee (patch)
treecf700fc76fea159fce01db15dd7772802d48800e
parent2dda813b958e8000d22dec59f3d1a2c5024df095 (diff)
debug: downgrade logging
Downgrade lots of LL_DEBUG1's that were left over from refactoring.
-rw-r--r--editor/window.c4
-rw-r--r--gui/msgwin.c16
2 files changed, 10 insertions, 10 deletions
diff --git a/editor/window.c b/editor/window.c
index 265cf04c3..47f45ffeb 100644
--- a/editor/window.c
+++ b/editor/window.c
@@ -176,7 +176,7 @@ bool self_insert(struct EnterWindowData *wdata, int ch)
static int enter_recalc(struct MuttWindow *win)
{
win->actions |= WA_REPAINT;
- mutt_debug(LL_DEBUG1, "recalc done, request WA_REPAINT\n");
+ mutt_debug(LL_DEBUG5, "recalc done, request WA_REPAINT\n");
return 0;
}
@@ -237,7 +237,7 @@ static int enter_repaint(struct MuttWindow *win)
}
mutt_window_get_coords(win, &wdata->col, &wdata->row);
- mutt_debug(LL_DEBUG1, "repaint done\n");
+ mutt_debug(LL_DEBUG5, "repaint done\n");
return 0;
}
diff --git a/gui/msgwin.c b/gui/msgwin.c
index 5db9604e3..2b7095d0d 100644
--- a/gui/msgwin.c
+++ b/gui/msgwin.c
@@ -217,7 +217,7 @@ int msgwin_calc_rows(struct MsgWinWindowData *wdata, int cols, const char *str)
// Start a new row
struct MwChunk tmp = { offset, mwc->bytes, mwc->width, mwc->ac_color };
- mutt_debug(LL_DEBUG1, "row = %d\n", row);
+ mutt_debug(LL_DEBUG5, "row = %d\n", row);
ARRAY_ADD(&wdata->rows[row], tmp);
chunk = ARRAY_LAST(&wdata->rows[row]);
@@ -241,7 +241,7 @@ int msgwin_calc_rows(struct MsgWinWindowData *wdata, int cols, const char *str)
width += mwc->width;
}
- mutt_debug(LL_DEBUG1, "msgwin_calc_rows() => %d\n", row + 1);
+ mutt_debug(LL_DEBUG5, "msgwin_calc_rows() => %d\n", row + 1);
return row + 1;
}
@@ -273,7 +273,7 @@ static int msgwin_repaint(struct MuttWindow *win)
mutt_window_get_coords(win, &wdata->col, &wdata->row);
- mutt_debug(LL_DEBUG1, "msgwin repaint done\n");
+ mutt_debug(LL_DEBUG5, "msgwin repaint done\n");
return 0;
}
@@ -287,7 +287,7 @@ static bool msgwin_recursor(struct MuttWindow *win)
mutt_window_move(win, wdata->col, wdata->row);
mutt_curses_set_cursor(MUTT_CURSOR_VISIBLE);
- mutt_debug(LL_DEBUG1, "msgwin recursor done\n");
+ mutt_debug(LL_DEBUG5, "msgwin recursor done\n");
return true;
}
@@ -354,7 +354,7 @@ static int msgwin_window_observer(struct NotifyCallback *nc)
{
win->actions |= WA_REPAINT;
}
- mutt_debug(LL_DEBUG1, "window state done, request WA_RECALC\n");
+ mutt_debug(LL_DEBUG5, "window state done, request WA_RECALC\n");
}
else if (nc->event_subtype == NT_WINDOW_DELETE)
{
@@ -429,7 +429,7 @@ void msgwin_add_text(struct MuttWindow *win, const char *text, const struct Attr
{
buf_addstr(wdata->text, text);
measure(&wdata->chars, text, ac_color);
- mutt_debug(LL_DEBUG1, "MW ADD: %zu, %s\n", buf_len(wdata->text),
+ mutt_debug(LL_DEBUG5, "MW ADD: %zu, %s\n", buf_len(wdata->text),
buf_string(wdata->text));
}
else
@@ -462,7 +462,7 @@ void msgwin_add_text_n(struct MuttWindow *win, const char *text, int bytes,
const char *dptr = wdata->text->dptr;
buf_addstr_n(wdata->text, text, bytes);
measure(&wdata->chars, dptr, ac_color);
- mutt_debug(LL_DEBUG1, "MW ADD: %zu, %s\n", buf_len(wdata->text),
+ mutt_debug(LL_DEBUG5, "MW ADD: %zu, %s\n", buf_len(wdata->text),
buf_string(wdata->text));
}
else
@@ -501,7 +501,7 @@ void msgwin_set_text(struct MuttWindow *win, const char *text, enum ColorId colo
measure(&wdata->chars, buf_string(wdata->text), ac_color);
}
- mutt_debug(LL_DEBUG1, "MW SET: %zu, %s\n", buf_len(wdata->text),
+ mutt_debug(LL_DEBUG5, "MW SET: %zu, %s\n", buf_len(wdata->text),
buf_string(wdata->text));
int rows = msgwin_calc_rows(wdata, win->state.cols, buf_string(wdata->text));