mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-18 10:13:14 +08:00
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:
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
|
||||
|
||||
Reference in New Issue
Block a user