• Kir Kolyshkin's avatar
    open_proc: don't print error twice · 56f91edf
    Kir Kolyshkin authored
    open_proc* and fopen_proc* are all macros, and they print errors in case
    something is wrong (and as they are macros they print correct file:line
    info, too). So, there is no need to print another error message
    right after calling those.
    
    This fixes double error messages like these:
    
    (00.047295) Error (criu/proc_parse.c:990): Can't open 18472/status on procfs: No such file or directory
    (00.047298) Error (criu/proc_parse.c:992): Can't open proc status: No such file or directory
    
    travis-ci: success for Assorted nitpicks
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    56f91edf
cr-restore.c 67.1 KB