Skip to content

Commit debf9d9

Browse files
committed
Print mtktvapi_config_custom_map_id_2_string args and return value
(Not sure whether this works; this was uncommitted for ~3 months.)
1 parent 634bed0 commit debf9d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

patcher-payload.c

+7
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ DEFINE_OVERRIDE(char *, a_mtktvapi_config_get_value, int16_t grp, char *cfg, int
8585
return ret;
8686
}
8787

88+
DEFINE_OVERRIDE(int32_t, mtktvapi_config_custom_map_id_2_string, int32_t id, char *string) {
89+
int32_t ret = orig_mtktvapi_config_custom_map_id_2_string(id, string);
90+
log("mtktvapi_config_custom_map_id_2_string(%ld, %s) = %ld", id, string, ret);
91+
return ret;
92+
}
93+
8894
// Patch a GOT as described in req. The GOT is expected to be within start-end and contain the
8995
// value to patch at most once. (We can’t really easily tell where the GOT in the ELF segment
9096
// is, so we search all of it and if we found the value twice, the chances of either of them
@@ -181,6 +187,7 @@ __attribute__((constructor)) static void init() {
181187

182188
log("Initializing");
183189
INIT_OVERRIDE("libmtkapp.so", a_mtktvapi_config_get_value);
190+
INIT_OVERRIDE("libmtkapp.so", mtktvapi_config_custom_map_id_2_string);
184191
log("Initialized");
185192
}
186193

0 commit comments

Comments
 (0)