util/cdrom.h: Fixed size of track info array.

Also made it possible to enable VERBOSE in cdrom.cpp without link
errors.
This commit is contained in:
Vas Crabb 2024-01-26 01:10:37 +11:00
parent c99190e0d1
commit 44d45a6342
2 changed files with 2 additions and 27 deletions

View File

@ -34,7 +34,6 @@
/** @brief The verbose. */
#define VERBOSE (0)
#define EXTRA_VERBOSE (0)
#if VERBOSE
/**
* @def LOG(x) do
@ -44,31 +43,7 @@
* @param x The void to process.
*/
#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
/**
* @fn void CLIB_DECL logerror(const char *text, ...) ATTR_PRINTF(1,2);
*
* @brief Logerrors the given text.
*
* @param text The text.
*
* @return A CLIB_DECL.
*/
void CLIB_DECL logerror(const char *text, ...) ATTR_PRINTF(1,2);
#else
/**
* @def LOG(x);
*
* @brief A macro that defines log.
*
* @param x The void to process.
*/
#define LOG(x)
#endif
#define LOG(x) do { if (VERBOSE) { osd_printf_info x; } } while (0)

View File

@ -92,7 +92,7 @@ public:
{
uint32_t numtrks; /* number of tracks */
uint32_t flags; /* see FLAG_ above */
track_info tracks[MAX_TRACKS];
track_info tracks[MAX_TRACKS + 1];
};
struct track_input_entry