Previous 199869 Revisions Next

r26138 Wednesday 13th November, 2013 at 17:57:42 UTC by Jürgen Buchmüller
Use logerror and vlogerror instead of debug_console_(v)printf
[/branches/alto2/src/emu/cpu/alto2]alto2.c alto2.h
[/branches/alto2/src/emu/debug]textbuf.c
[/branches/alto2/src/emu/machine]diablo_hd.c diablo_hd.h

branches/alto2/src/emu/debug/textbuf.c
r26137r26138
185185
186186void text_buffer_print(text_buffer *text, const char *data)
187187{
188   if (!text)
189      return;
188190   text_buffer_print_wrap(text, data, 10000);
189191}
190192
branches/alto2/src/emu/cpu/alto2/alto2.c
r26137r26138
11901190      // last line had a \n - print type name
11911191      for (int i = 0; i < sizeof(type_name)/sizeof(type_name[0]); i++)
11921192         if (type & (1 << i))
1193            debug_console_printf(machine(), "%-7s ", type_name[i]);
1193            logerror("%-7s ", type_name[i]);
11941194   }
11951195   va_list ap;
11961196   va_start(ap, format);
1197   debug_console_vprintf(machine(), format, ap);
1197   vlogerror(format, ap);
11981198   va_end(ap);
11991199   m_log_newline = format[strlen(format) - 1] == '\n';
12001200}
branches/alto2/src/emu/cpu/alto2/alto2.h
r26137r26138
2222#ifndef   ALTO2_DEBUG
2323#define   ALTO2_DEBUG         1
2424#endif
25#if   ALTO2_DEBUG
26#include "debug/debugcon.h"
27#endif
2825
2926#define   USE_PRIO_F9318   0         //!< define to 1 to use the F9318 priority encoder code
3027#define   USE_ALU_74181   0         //!< define to 1 to use the SN74181 ALU code
branches/alto2/src/emu/machine/diablo_hd.c
r26137r26138
134134      return;
135135   va_list ap;
136136   va_start(ap, format);
137   debug_console_vprintf(machine(), format, ap);
137   vlogerror(format, ap);
138138   va_end(ap);
139139}
140140#endif
branches/alto2/src/emu/machine/diablo_hd.h
r26137r26138
1212#include "emu.h"
1313#include "imagedev/diablo.h"
1414
15#define   DIABLO_DEBUG   1
16
17#if   DIABLO_DEBUG
18#include "debug/debugcon.h"
15#ifndef   DIABLO_DEBUG
16#define   DIABLO_DEBUG   1      //!< set to 1 to enable debug log output
1917#endif
2018
2119#define DIABLO_HD_0 "diablo0"

Previous 199869 Revisions Next


© 1997-2024 The MAME Team