| 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 |
| r26137 | r26138 | |
|---|---|---|
| 185 | 185 | |
| 186 | 186 | void text_buffer_print(text_buffer *text, const char *data) |
| 187 | 187 | { |
| 188 | if (!text) | |
| 189 | return; | |
| 188 | 190 | text_buffer_print_wrap(text, data, 10000); |
| 189 | 191 | } |
| 190 | 192 |
| r26137 | r26138 | |
|---|---|---|
| 1190 | 1190 | // last line had a \n - print type name |
| 1191 | 1191 | for (int i = 0; i < sizeof(type_name)/sizeof(type_name[0]); i++) |
| 1192 | 1192 | if (type & (1 << i)) |
| 1193 | | |
| 1193 | logerror("%-7s ", type_name[i]); | |
| 1194 | 1194 | } |
| 1195 | 1195 | va_list ap; |
| 1196 | 1196 | va_start(ap, format); |
| 1197 | | |
| 1197 | vlogerror(format, ap); | |
| 1198 | 1198 | va_end(ap); |
| 1199 | 1199 | m_log_newline = format[strlen(format) - 1] == '\n'; |
| 1200 | 1200 | } |
| r26137 | r26138 | |
|---|---|---|
| 22 | 22 | #ifndef ALTO2_DEBUG |
| 23 | 23 | #define ALTO2_DEBUG 1 |
| 24 | 24 | #endif |
| 25 | #if ALTO2_DEBUG | |
| 26 | #include "debug/debugcon.h" | |
| 27 | #endif | |
| 28 | 25 | |
| 29 | 26 | #define USE_PRIO_F9318 0 //!< define to 1 to use the F9318 priority encoder code |
| 30 | 27 | #define USE_ALU_74181 0 //!< define to 1 to use the SN74181 ALU code |
| r26137 | r26138 | |
|---|---|---|
| 134 | 134 | return; |
| 135 | 135 | va_list ap; |
| 136 | 136 | va_start(ap, format); |
| 137 | | |
| 137 | vlogerror(format, ap); | |
| 138 | 138 | va_end(ap); |
| 139 | 139 | } |
| 140 | 140 | #endif |
| r26137 | r26138 | |
|---|---|---|
| 12 | 12 | #include "emu.h" |
| 13 | 13 | #include "imagedev/diablo.h" |
| 14 | 14 | |
| 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 | |
| 19 | 17 | #endif |
| 20 | 18 | |
| 21 | 19 | #define DIABLO_HD_0 "diablo0" |
| Previous | 199869 Revisions | Next |