mirror of https://github.com/xemu-project/xemu.git
misc: zynq_slcr: Make DB_PRINTs always compile
Change the DB_PRINT macro over to a regular if() rather than conditional compilation to give constant compile testing of formats. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-id: 942477847353c5cff5f45a228cc88c633dc012f3.1396503037.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
15e3611e1c
commit
6954a1cd97
|
@ -19,15 +19,17 @@
|
||||||
#include "hw/sysbus.h"
|
#include "hw/sysbus.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
|
|
||||||
#ifdef ZYNQ_ARM_SLCR_ERR_DEBUG
|
#ifndef ZYNQ_SLCR_ERR_DEBUG
|
||||||
#define DB_PRINT(...) do { \
|
#define ZYNQ_SLCR_ERR_DEBUG 0
|
||||||
fprintf(stderr, ": %s: ", __func__); \
|
|
||||||
fprintf(stderr, ## __VA_ARGS__); \
|
|
||||||
} while (0);
|
|
||||||
#else
|
|
||||||
#define DB_PRINT(...)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define DB_PRINT(...) do { \
|
||||||
|
if (ZYNQ_SLCR_ERR_DEBUG) { \
|
||||||
|
fprintf(stderr, ": %s: ", __func__); \
|
||||||
|
fprintf(stderr, ## __VA_ARGS__); \
|
||||||
|
} \
|
||||||
|
} while (0);
|
||||||
|
|
||||||
#define XILINX_LOCK_KEY 0x767b
|
#define XILINX_LOCK_KEY 0x767b
|
||||||
#define XILINX_UNLOCK_KEY 0xdf0d
|
#define XILINX_UNLOCK_KEY 0xdf0d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue