@@ -439,9 +439,9 @@ mono_print_ins_index_strbuf (int i, MonoInst *ins)
439
439
char spec_dest = (char )0 , spec_src1 = (char )0 , spec_src2 = (char )0 , spec_src3 = (char )0 ;
440
440
441
441
if (i != -1 )
442
- g_string_append_printf (sbuf , "\t%-2d %s " , i , mono_inst_name (ins -> opcode ));
442
+ g_string_append_printf (sbuf , "\t%-2d " M_PRI_INST " " , i , mono_inst_name (ins -> opcode ));
443
443
else
444
- g_string_append_printf (sbuf , " %s " , mono_inst_name (ins -> opcode ));
444
+ g_string_append_printf (sbuf , " " M_PRI_INST " " , mono_inst_name (ins -> opcode ));
445
445
if (spec == (gpointer )MONO_ARCH_CPU_SPEC ) {
446
446
/* This is a lowered opcode */
447
447
if (ins -> dreg != -1 ) {
@@ -1160,11 +1160,11 @@ mono_local_regalloc (MonoCompile *cfg, MonoBasicBlock *bb)
1160
1160
ispec = INS_INFO (i );
1161
1161
1162
1162
if ((spec [MONO_INST_DEST ] && (ispec [MONO_INST_DEST ] == ' ' )))
1163
- g_error ("Instruction metadata for %s inconsistent.\n" , mono_inst_name (i ));
1163
+ g_error ("Instruction metadata for " M_PRI_INST " inconsistent.\n" , mono_inst_name (i ));
1164
1164
if ((spec [MONO_INST_SRC1 ] && (ispec [MONO_INST_SRC1 ] == ' ' )))
1165
- g_error ("Instruction metadata for %s inconsistent.\n" , mono_inst_name (i ));
1165
+ g_error ("Instruction metadata for " M_PRI_INST " inconsistent.\n" , mono_inst_name (i ));
1166
1166
if ((spec [MONO_INST_SRC2 ] && (ispec [MONO_INST_SRC2 ] == ' ' )))
1167
- g_error ("Instruction metadata for %s inconsistent.\n" , mono_inst_name (i ));
1167
+ g_error ("Instruction metadata for " M_PRI_INST " inconsistent.\n" , mono_inst_name (i ));
1168
1168
}
1169
1169
#endif
1170
1170
}
@@ -1249,7 +1249,7 @@ mono_local_regalloc (MonoCompile *cfg, MonoBasicBlock *bb)
1249
1249
spec_dest = spec [MONO_INST_DEST ];
1250
1250
1251
1251
if (G_UNLIKELY (spec == (gpointer )/*FIXME*/ MONO_ARCH_CPU_SPEC )) {
1252
- g_error ("Opcode '%s ' missing from machine description file." , mono_inst_name (ins -> opcode ));
1252
+ g_error ("Opcode '" M_PRI_INST " ' missing from machine description file." , mono_inst_name (ins -> opcode ));
1253
1253
}
1254
1254
1255
1255
DEBUG (mono_print_ins_index (i , ins ));
@@ -2303,7 +2303,7 @@ mono_opcode_to_cond (int opcode)
2303
2303
CompRelation rel = mono_opcode_to_cond_unchecked (opcode );
2304
2304
2305
2305
if (rel == (CompRelation )- 1 ) {
2306
- printf ("%s \n" , mono_inst_name (opcode ));
2306
+ printf ("" M_PRI_INST " \n" , mono_inst_name (opcode ));
2307
2307
g_assert_not_reached ();
2308
2308
return (CompRelation )0 ;
2309
2309
}
@@ -2367,7 +2367,7 @@ mono_opcode_to_type (int opcode, int cmp_opcode)
2367
2367
return CMP_TYPE_L ;
2368
2368
}
2369
2369
} else {
2370
- g_error ("Unknown opcode '%s ' in opcode_to_type" , mono_inst_name (opcode ));
2370
+ g_error ("Unknown opcode '" M_PRI_INST " ' in opcode_to_type" , mono_inst_name (opcode ));
2371
2371
return (CompType )0 ;
2372
2372
}
2373
2373
}
0 commit comments