Menu

#2249 TED debugging won't compile

v3.x
open
nobody
None
2 days ago
2 days ago
No

Enabling TED debug messages by uncommenting the following options in tedtypes.h is broken:

/* Debugging options.  */

/* #define TED_VMODE_DEBUG */
/* #define TED_RASTER_DEBUG */
/* #define TED_REGISTERS_DEBUG */

It produces a lot of errors like:

../../../vice-git/src/plus4/ted-irq.c:155:23: error: passing argument 1 of ‘log_debug’ makes integer from pointer without a cast [-Wint-conversion]
  155 |     TED_DEBUG_RASTER(("TED: update_raster_irq(): "
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       |
      |                       char *
../../../vice-git/src/plus4/tedtypes.h:376:39: note: in definition of macro ‘TED_DEBUG_RASTER’
  376 | #define TED_DEBUG_RASTER(x) log_debug x
      |                                       ^

Looks like the call to log_debug is missing the first parameter

Discussion


Log in to post a comment.