@@ -41,6 +41,9 @@
#define HTM_ENUM_TO_STRING(e) ((e == HTM_NEST) ? "nhtm" : "chtm")
+#define PR_ERROR(x, args...) \
+ pdbg_log(PDBG_ERROR, x, ##args)
+
enum htm_type {
HTM_CORE,
HTM_NEST,
@@ -43,10 +43,8 @@
#include "htm.h"
#include "options.h"
-#undef PR_DEBUG
-#define PR_DEBUG(...)
-#define PR_ERROR(x, args...) \
- fprintf(stderr, "%s: " x, __FUNCTION__, ##args)
+#define PR_ERROR(x, args...) \
+ pdbg_log(PDBG_ERROR, x, ##args)
#include "fake.dt.h"
@@ -26,6 +26,9 @@
#include "main.h"
#include "progress.h"
+#define PR_ERROR(x, args...) \
+ pdbg_log(PDBG_ERROR, x, ##args)
+
#define PUTMEM_BUF_SIZE 1024
static int getmem(uint64_t addr, uint64_t size, int ci)
{
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- src/htm.c | 3 +++ src/main.c | 6 ++---- src/mem.c | 3 +++ 3 files changed, 8 insertions(+), 4 deletions(-)