From f3596af24b9ca5705cba677b6aff11d72ed7abf4 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Thu, 22 Apr 2021 12:54:53 +0800 Subject: fix Python search API --- suite/testcommon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'suite') diff --git a/suite/testcommon.py b/suite/testcommon.py index 48eeccab..95c10f85 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -1110,7 +1110,7 @@ class TestBuilder(Builder): line %s' % (addr, match, line)) for addr, line in bv.find_all_constant(bv.start, bv.end, 0x58): - retinfo.append('constant 0x58 is found at address 0x%lx with line' %\ + retinfo.append('constant 0x58 is found at address 0x%lx with line %s' %\ (addr, line)) def data_callback(addr, match): @@ -1123,8 +1123,8 @@ class TestBuilder(Builder): retinfo.append('match found at address: 0x%lx with string %s, line %s' %\ (addr, match, line)) - bv.find_all_text(bv.start, bv.end, 'test', None, FindFlag.FindCaseSensitive, None, - string_callback) + bv.find_all_text(bv.start, bv.end, 'test', None, FindFlag.FindCaseSensitive, + FunctionGraphType.NormalFunctionGraph, None, string_callback) def constant_callback(addr, line): retinfo.append('match found at address: 0x%lx with constant 0x58, line %s'\ -- cgit v1.3.1