x86_64/include/rtems/score/x86_64.h: Use standard variadic macro

The DBG_PRINTF() macro was using the GNU extension variadic macro
style. Switched to standard C style variadic macro, printk() so
safer for debug than printf(), and included needed files.
This commit is contained in:
Joel Sherrill
2025-07-24 20:37:11 -05:00
committed by Kinsey Moore
parent ccc5651c99
commit cef5542bc0
@@ -40,11 +40,14 @@ extern "C" {
#define FSBASE_MSR 0xC0000100
#if DEBUG
#define DBG_PRINTF(format, args...) \
printf(format, ## args)
#ifndef ASM
#ifdef DEBUG
#include <inttypes.h>
#include <rtems/bspIo.h>
#define DBG_PRINTF(...) printk(__VA_ARGS__)
#else
#define DBG_PRINTF(format, args...)
#define DBG_PRINTF(...)
#endif
#endif
#ifdef __cplusplus