mirror of https://github.com/zeldaret/botw.git
tools/check: Improve error reporting
This commit is contained in:
parent
96a8bb104e
commit
b53135a885
|
@ -3,6 +3,8 @@
|
||||||
import sys
|
import sys
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
from colorama import Fore
|
||||||
|
|
||||||
import util.elf
|
import util.elf
|
||||||
import util.checker
|
import util.checker
|
||||||
from util import utils
|
from util import utils
|
||||||
|
@ -45,7 +47,7 @@ def main() -> None:
|
||||||
f"function {utils.format_symbol_name_for_msg(func.decomp_name)} is marked as matching but does not match")
|
f"function {utils.format_symbol_name_for_msg(func.decomp_name)} is marked as matching but does not match")
|
||||||
a1, a2, reason = checker.get_mismatch()
|
a1, a2, reason = checker.get_mismatch()
|
||||||
if a1 != -1:
|
if a1 != -1:
|
||||||
sys.stderr.write(f" at {a1|0x7100000000:#x} : {reason}\n")
|
sys.stderr.write(f" at {a1 | 0x7100000000:#x} : {Fore.CYAN}{reason}{Fore.RESET}\n")
|
||||||
failed = True
|
failed = True
|
||||||
elif func.status == utils.FunctionStatus.Equivalent or func.status == utils.FunctionStatus.NonMatching:
|
elif func.status == utils.FunctionStatus.Equivalent or func.status == utils.FunctionStatus.NonMatching:
|
||||||
if check_function(checker, func.addr, func.size, func.decomp_name):
|
if check_function(checker, func.addr, func.size, func.decomp_name):
|
||||||
|
|
Loading…
Reference in New Issue