mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
coredump: lint fix visually indented line
Continuation line over-indented for visual indent https://www.flake8rules.com/rules/E127.html Visually indented line with same indent as next logical line https://www.flake8rules.com/rules/E129.html Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
This commit is contained in:
parent
3a689ed9a6
commit
0b3cf5c9e5
1 changed files with 9 additions and 9 deletions
|
|
@ -781,19 +781,19 @@ class coredump_generator:
|
|||
"""
|
||||
Calculate amount of vma to put into core dump.
|
||||
"""
|
||||
if vma["status"] & status["VMA_AREA_VVAR"] or \
|
||||
vma["status"] & status["VMA_AREA_VSYSCALL"] or \
|
||||
vma["status"] & status["VMA_AREA_VDSO"]:
|
||||
if (vma["status"] & status["VMA_AREA_VVAR"] or
|
||||
vma["status"] & status["VMA_AREA_VSYSCALL"] or
|
||||
vma["status"] & status["VMA_AREA_VDSO"]):
|
||||
size = vma["end"] - vma["start"]
|
||||
elif vma["prot"] == 0:
|
||||
size = 0
|
||||
elif vma["prot"] & prot["PROT_READ"] and \
|
||||
vma["prot"] & prot["PROT_EXEC"]:
|
||||
elif (vma["prot"] & prot["PROT_READ"] and
|
||||
vma["prot"] & prot["PROT_EXEC"]):
|
||||
size = PAGESIZE
|
||||
elif vma["status"] & status["VMA_ANON_SHARED"] or \
|
||||
vma["status"] & status["VMA_FILE_SHARED"] or \
|
||||
vma["status"] & status["VMA_ANON_PRIVATE"] or \
|
||||
vma["status"] & status["VMA_FILE_PRIVATE"]:
|
||||
elif (vma["status"] & status["VMA_ANON_SHARED"] or
|
||||
vma["status"] & status["VMA_FILE_SHARED"] or
|
||||
vma["status"] & status["VMA_ANON_PRIVATE"] or
|
||||
vma["status"] & status["VMA_FILE_PRIVATE"]):
|
||||
size = vma["end"] - vma["start"]
|
||||
else:
|
||||
size = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue