Changeset 88739997 in mainline


Ignore:
Timestamp:
2024-09-18T10:05:08Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
36fcd0a
Parents:
9aa51406
git-author:
Jiri Svoboda <jiri@…> (2024-09-17 17:04:24)
git-committer:
Jiri Svoboda <jiri@…> (2024-09-18 10:05:08)
Message:

Remove forgotten debug messages

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/terminal/terminal.c

    r9aa51406 r88739997  
    10401040    terminal_t **rterm)
    10411041{
    1042         printf("terminal_create(%zu, %zu)\n", width, height);
    1043 
    10441042        errno_t rc;
    10451043
  • uspace/lib/termui/src/history.c

    r9aa51406 r88739997  
    604604        }
    605605
    606         //printf("Counted at least %d viewport rows.\n", rows);
    607 
    608606        return (rows > max) ? max : rows;
    609607}
     
    647645        assert(history->row_delta <= SIZE_MAX - row);
    648646
    649         //printf("Iterating history rows: %d..%d\n", row, row + count);
    650 
    651647        size_t current_line = history->viewport_top;
    652648        size_t delta = history->row_delta + (size_t) row;
     
    678674                delta = 0;
    679675
    680                 //printf("Line %zu, %zu rows\n", current_line, _history_line_rows(history, current_line));
    681 
    682676                /* Callback for each full row. */
    683677                while (count > 0 && line_offset + history->cols <= line.len) {
    684678                        assert(line.idx + line_offset <= history->cells.buf_len - history->cols);
    685                         //printf("Iterating row %d in line %zu\n", row, current_line);
    686679                        cb(udata, 0, row, &cells[line_offset], history->cols);
    687680
     
    692685
    693686                if (count > 0 && line_offset < line.len) {
    694                         //printf("Iterating last row %d of line %zu\n", row, current_line);
    695687                        /* Callback for the last (incomplete) row. */
    696688
     
    701693
    702694                        /* Callbacks for the blank section in the last row. */
    703                         //printf("Updating %zu blank cells.\n", history->cols - col);
    704695                        _update_blank(col, row, history->cols - col, cb, udata);
    705696
  • uspace/lib/termui/src/termui.c

    r9aa51406 r88739997  
    510510
    511511        for (int row = first_row; row < first_row + rows; row++) {
    512                 //printf("Iterating active screen row %d as viewport row %d\n", row-sb_rows, row);
    513512                termui->update_cb(termui->update_udata, 0, row, &_screen_cell(termui, 0, row - sb_rows), termui->cols);
    514513        }
     
    522521termui_t *termui_create(int cols, int rows, size_t history_lines)
    523522{
    524         printf("termui_create(%d, %d, %zu)\n", cols, rows, history_lines);
    525 
    526523        /* Prevent numerical overflows. */
    527524        if (cols < 2 || rows < 1 || INT_MAX / cols < rows)
     
    575572void termui_history_scroll(termui_t *termui, int delta)
    576573{
    577         //printf("Termui scroll %d\n", delta);
    578574        int scrolled = _history_scroll(&termui->history, delta);
    579575
Note: See TracChangeset for help on using the changeset viewer.