@@ -146,7 +146,7 @@ bool PropInfo::parser_propertys(){
146
146
init_datatype_info ();
147
147
size_t pa_size_addr = swap_ptr->get_var_addr_by_bss (" pa_size_" , tc_init->task , symbol_file);
148
148
if (!is_uvaddr (pa_size_addr,tc_init)){
149
- fprintf (fp, " pa_size: %#zx is not invaild !\n " ,pa_size_addr);
149
+ // fprintf(fp, "pa_size: %#zx is not invaild !\n",pa_size_addr);
150
150
return false ;
151
151
}
152
152
if (is_compat){
@@ -158,7 +158,7 @@ bool PropInfo::parser_propertys(){
158
158
159
159
size_t pa_data_size_addr = swap_ptr->get_var_addr_by_bss (" pa_data_size_" , tc_init->task , symbol_file);
160
160
if (!is_uvaddr (pa_data_size_addr,tc_init)){
161
- fprintf (fp, " pa_data_size: %#zx is not invaild !\n " ,pa_data_size_addr);
161
+ // fprintf(fp, "pa_data_size: %#zx is not invaild !\n",pa_data_size_addr);
162
162
return false ;
163
163
}
164
164
if (is_compat){
@@ -169,7 +169,7 @@ bool PropInfo::parser_propertys(){
169
169
if (debug)fprintf (fp, " pa_data_size:%#zx --> %zu \n " ,pa_data_size_addr, pa_data_size);
170
170
size_t system_prop_addr = swap_ptr->get_var_addr_by_bss (" system_properties" , tc_init->task , symbol_file);
171
171
if (!is_uvaddr (system_prop_addr,tc_init)){
172
- fprintf (fp, " system_properties: %#zx is not invaild !\n " ,system_prop_addr);
172
+ // fprintf(fp, "system_properties: %#zx is not invaild !\n",system_prop_addr);
173
173
return false ;
174
174
}
175
175
if (debug)fprintf (fp, " system_properties: %#zx \n " ,system_prop_addr);
@@ -181,7 +181,7 @@ bool PropInfo::parser_propertys(){
181
181
contexts_addr = swap_ptr->uread_ulong (tc_init->task , contexts_addr, " read Contexts" );
182
182
}
183
183
if (!is_uvaddr (contexts_addr,tc_init)){
184
- fprintf (fp, " ContextsSerialized: %#zx is not invaild !\n " ,contexts_addr);
184
+ // fprintf(fp, "ContextsSerialized: %#zx is not invaild !\n",contexts_addr);
185
185
return false ;
186
186
}
187
187
if (debug)fprintf (fp, " ContextsSerialized: %#zx \n " ,contexts_addr);
@@ -196,21 +196,21 @@ bool PropInfo::parser_propertys(){
196
196
serial_prop_area_addr = swap_ptr->uread_ulong (tc_init->task , contexts_addr + g_offset.ContextsSerialized_serial_prop_area_ , " read serial_prop_area_" );
197
197
}
198
198
if (!is_uvaddr (serial_prop_area_addr,tc_init)){
199
- fprintf (fp, " serial_prop_area: %#zx is not invaild !\n " ,serial_prop_area_addr);
199
+ // fprintf(fp, "serial_prop_area: %#zx is not invaild !\n",serial_prop_area_addr);
200
200
return false ;
201
201
}
202
202
if (debug)fprintf (fp, " serial_prop_area: %#zx \n " ,serial_prop_area_addr);
203
203
// parser_prop_area(serial_prop_area_addr);
204
204
205
205
if (!is_uvaddr (context_nodes_addr,tc_init)){
206
- fprintf (fp, " context_nodes: %#zx is not invaild !\n " ,context_nodes_addr);
206
+ // fprintf(fp, "context_nodes: %#zx is not invaild !\n",context_nodes_addr);
207
207
return false ;
208
208
}
209
209
if (debug)fprintf (fp, " context_nodes base: %#zx cnt:%zu\n " ,context_nodes_addr,num_context_nodes);
210
210
for (size_t i = 0 ; i < num_context_nodes; i++){
211
211
size_t node_addr = context_nodes_addr + i * g_size.ContextNode ;
212
212
if (!is_uvaddr (node_addr,tc_init)){
213
- fprintf (fp, " ContextNode: %#zx is not invaild !\n " ,node_addr);
213
+ // fprintf(fp, "ContextNode: %#zx is not invaild !\n",node_addr);
214
214
continue ;
215
215
}
216
216
size_t prop_area_addr,context_addr,filename_addr;
@@ -235,17 +235,17 @@ bool PropInfo::parser_propertys(){
235
235
236
236
bool PropInfo::parser_prop_area (size_t area_vaddr){
237
237
if (!is_uvaddr (area_vaddr,tc_init)){
238
- fprintf (fp, " prop_area: %#zx is not invaild !\n " ,area_vaddr);
238
+ // fprintf(fp, "prop_area: %#zx is not invaild !\n",area_vaddr);
239
239
return false ;
240
240
}
241
241
char prop_area_buf[sizeof (prop_area)];
242
242
if (!swap_ptr->uread_buffer (tc_init->task ,area_vaddr,prop_area_buf,sizeof (prop_area), " prop_area" )){
243
- if (debug) fprintf (fp, " read prop_area fail at: %#zx !\n " ,area_vaddr);
243
+ // fprintf(fp, "read prop_area fail at: %#zx !\n",area_vaddr);
244
244
return false ;
245
245
}
246
246
prop_area area = *reinterpret_cast <prop_area*>(prop_area_buf);
247
247
if (area.magic_ != 0x504f5250 ){
248
- fprintf (fp, " prop_area magic not correct !\n " );
248
+ // fprintf(fp, "prop_area magic not correct !\n");
249
249
return false ;
250
250
}
251
251
ulong data_addr = area_vaddr + g_offset.prop_area_data_ ;
@@ -267,7 +267,7 @@ bool PropInfo::parser_prop_area(size_t area_vaddr){
267
267
268
268
void PropInfo::parser_prop_bt (size_t root, size_t prop_bt_addr){
269
269
if (!is_uvaddr (prop_bt_addr,tc_init)){
270
- fprintf (fp, " prop_bt: %#zx is not invaild !\n " ,prop_bt_addr);
270
+ // fprintf(fp, " prop_bt: %#zx is not invaild !\n",prop_bt_addr);
271
271
return ;
272
272
}
273
273
char prop_bt_buf[sizeof (prop_bt)];
@@ -301,7 +301,7 @@ void PropInfo::parser_prop_bt(size_t root, size_t prop_bt_addr){
301
301
302
302
void PropInfo::parser_prop_info (size_t prop_info_addr){
303
303
if (!is_uvaddr (prop_info_addr,tc_init)){
304
- fprintf (fp, " prop_info: %#zx is not invaild !\n " ,prop_info_addr);
304
+ // fprintf(fp, " prop_info: %#zx is not invaild !\n",prop_info_addr);
305
305
return ;
306
306
}
307
307
char prop_info_buf[sizeof (prop_info)];
@@ -369,7 +369,7 @@ void PropInfo::parser_prop_by_init(){
369
369
prop_files.insert (file_path);
370
370
char vma_data[vma_len];
371
371
if (!swap_ptr->uread_buffer (tc->task , vm_start, vma_data, vma_len, " read vma data for prop" )) {
372
- fprintf (fp, " uread_buffer fail in prop \n " );
372
+ // fprintf(fp, "uread_buffer fail in prop \n");
373
373
}
374
374
// if(index == 0){
375
375
// prop_area pa = *reinterpret_cast<prop_area*>(vma_data);
0 commit comments