diff options
Diffstat (limited to 'sim/ppc')
-rw-r--r-- | sim/ppc/ChangeLog | 5 | ||||
-rw-r--r-- | sim/ppc/debug.h | 32 |
2 files changed, 21 insertions, 16 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 52fc3f2..24fcbb8 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-17 Pedro Alves <palves@redhat.com> + + * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call + sim_io_printf_filtered instead of printf_filtered. + 2015-06-12 Mike Frysinger <vapier@gentoo.org> * configure: Regenerate. diff --git a/sim/ppc/debug.h b/sim/ppc/debug.h index fdf2e3c..6f19624 100644 --- a/sim/ppc/debug.h +++ b/sim/ppc/debug.h @@ -87,8 +87,8 @@ extern int ppc_trace[nr_trace_options]; do { \ if (WITH_TRACE) { \ if (ppc_trace[OBJECT]) { \ - printf_filtered("%s:%d: ", filter_filename(__FILE__), __LINE__); \ - printf_filtered ARGS; \ + sim_io_printf_filtered("%s:%d: ", filter_filename(__FILE__), __LINE__); \ + sim_io_printf_filtered ARGS; \ } \ } \ } while (0) @@ -98,8 +98,8 @@ do { \ do { \ if (WITH_TRACE) { \ if (ppc_trace[OBJECT]) { \ - printf_filtered("%s:%d:0x%08lx:%s ", itable[MY_INDEX].file, itable[MY_INDEX].line_nr, (long)cia, itable[MY_INDEX].name); \ - printf_filtered ARGS; \ + sim_io_printf_filtered("%s:%d:0x%08lx:%s ", itable[MY_INDEX].file, itable[MY_INDEX].line_nr, (long)cia, itable[MY_INDEX].name); \ + sim_io_printf_filtered ARGS; \ } \ } \ } while (0) @@ -112,11 +112,11 @@ do { \ if (ppc_trace[trace_devices] \ || ppc_trace[trace_##OBJECT##_device] \ || trace_device) { \ - printf_filtered("%s:%d:%s:%s%s ", \ - filter_filename(__FILE__), __LINE__, #OBJECT, \ - trace_device ? device_path(me) : "", \ - trace_device ? ":" : ""); \ - printf_filtered ARGS; \ + sim_io_printf_filtered("%s:%d:%s:%s%s ", \ + filter_filename(__FILE__), __LINE__, #OBJECT, \ + trace_device ? device_path(me) : "", \ + trace_device ? ":" : ""); \ + sim_io_printf_filtered ARGS; \ } \ } \ } while (0) @@ -130,11 +130,11 @@ do { \ if (ppc_trace[trace_devices] \ || ppc_trace[trace_##OBJECT##_device] \ || trace_device) { \ - printf_filtered("%s:%d:%s:%s%s ", \ - filter_filename(__FILE__), __LINE__, #OBJECT, \ - trace_device ? device_path(me) : "", \ - trace_device ? ":" : ""); \ - printf_filtered ARGS; \ + sim_io_printf_filtered("%s:%d:%s:%s%s ", \ + filter_filename(__FILE__), __LINE__, #OBJECT, \ + trace_device ? device_path(me) : "", \ + trace_device ? ":" : ""); \ + sim_io_printf_filtered ARGS; \ } \ } \ } while (0) @@ -144,8 +144,8 @@ do { \ do { \ if (WITH_TRACE) { \ if (ppc_trace[trace_##OBJECT##_package]) { \ - printf_filtered("%s:%d:%s: ", filter_filename(__FILE__), __LINE__, #OBJECT); \ - printf_filtered ARGS; \ + sim_io_printf_filtered("%s:%d:%s: ", filter_filename(__FILE__), __LINE__, #OBJECT); \ + sim_io_printf_filtered ARGS; \ } \ } \ } while (0) |