diff mbox series

[04/18] htm: Fix potential issue with HTM_ERR macro

Message ID 20180619052535.24043-4-mikey@neuling.org
State Accepted
Headers show
Series [01/18] Make -a the default for probe | expand

Commit Message

Michael Neuling June 19, 2018, 5:25 a.m. UTC
Braces are fun.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 libpdbg/htm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;})