[Pdbg] [PATCH 04/18] htm: Fix potential issue with HTM_ERR macro
Michael Neuling
mikey at neuling.org
Tue Jun 19 15:25:21 AEST 2018
Braces are fun.
Signed-off-by: Michael Neuling <mikey at neuling.org>
---
libpdbg/htm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libpdbg/htm.c b/libpdbg/htm.c
index a1975448c2..0e5890182e 100644
--- a/libpdbg/htm.c
+++ b/libpdbg/htm.c
@@ -30,7 +30,7 @@
#include "target.h"
#include "debug.h"
-#define HTM_ERR(x) ({int rc = x; if (rc) {PR_ERROR("HTM Error %d %s:%d\n", \
+#define HTM_ERR(x) ({int rc = (x); if (rc) {PR_ERROR("HTM Error %d %s:%d\n", \
rc, __FILE__, __LINE__);} \
rc;})
--
2.17.1
More information about the Pdbg
mailing list