• Artem Bityutskiy's avatar
    UBIFS: do not print scary error messages needlessly · 348709ba
    Artem Bityutskiy authored
    At the moment UBIFS print large and scary error messages and
    flash dumps in case of nearly any corruption, even if it is
    a recoverable corruption. For example, if the master node is
    corrupted, ubifs_scan() prints error dumps, then UBIFS recovers
    just fine and goes on.
    
    This patch makes UBIFS print scary error messages only in
    real cases, which are not recoverable. It adds 'quiet' argument
    to the 'ubifs_scan()' function, so the caller may ask 'ubi_scan()'
    not to print error messages if the caller is able to do recovery.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    Reviewed-by: default avatarAdrian Hunter <Adrian.Hunter@nokia.com>
    348709ba
log.c 20.3 KB