summaryrefslogtreecommitdiffstats
path: root/src/log.c
AgeCommit message (Collapse)AuthorFilesLines
3 daysAdd multi-row progress display with a global progress barHEADmasterGravatar Nikias Bassen1-0/+3
Replace the single-line progress bar with a terminal renderer that shows one row per active progress tag. The overall restore step (Uploading/Verifying filesystem, Flashing firmware) is a reserved "global" bar that is always drawn first. Per-component bars (e.g. SEP, RestoreRamDisk) appear below it and disappear when finalized. - Redraw in place with ANSI cursor movement; clamp line width to the terminal width (ioctl on Unix, console API on Windows, with virtual terminal mode enabled) - Erase and redraw the bars around logger() output so log lines no longer corrupt the display - Remove the global bar once a different restore step starts - When stdout is not a TTY, skip escape codes and print only the changed bar, once per 1% step - Fix progress throttling: lastprog was an int and was compared after being overwritten, so granularity was never applied - RESTORE_STEP_UPLOAD_IMG no longer drives the global bar; it already has per-component bars
2026-02-14logger: fix crash and undefined behavior in logger_dump_hex with zero-length ↵Gravatar Sami Kortelainen1-1/+9
buffers
2025-09-11[Windows] Fix log outputGravatar Nikias Bassen1-1/+1
2025-07-01Fix a couple of compiler warnings and remove unused variablesGravatar Nikias Bassen1-1/+1
2025-07-01Update codebase to use (const) void* and size_t where applicableGravatar Nikias Bassen1-1/+1
2025-06-27log: Make sure to only add compiler attribute for supported compilersGravatar Nikias Bassen1-0/+5
2025-06-27Improve type safety of new logging system and its handling of varargsGravatar Visual Ehrmanntraut1-7/+19
- Replaced loglevel arguments and globals using the `int` type with the `loglevel` enum. - Moved logging print func handler function declaration to typedef. - Fixed misuse of `print_func` where a char* was passed in place of `va_list` via a wrapper function `print_funcf`. - Fixed reuse of varargs in `logger` causing a segfault when `stderr_enabled` is true. - Fixed length in `snprintf` call inside `logger_hex_dump` truncating the printed text.
2025-06-23Refactor logging and add logfile supportGravatar Nikias Bassen1-0/+210
idevicerestore will now also create a logfile automatically, unless disabled with --logfile=NONE.