• A
    UBIFS: allocate dump buffer on demand · 73d9aec3
    Artem Bityutskiy 提交于
    Instead of using pre-allocated 'c->dbg->buf' buffer in
    'dbg_dump_leb()', dynamically allocate it when needed. The intend
    is to get rid of the pre-allocated 'c->dbg->buf' buffer and save
    128KiB of RAM (or more if PEB size is larger). Indeed, currently we
    allocate this memory even if the user never enables any self-check,
    which is wasteful.
    Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    73d9aec3
debug.c 76.1 KB