summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2023-02-21 10:43:08 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-02-24 23:09:31 +0000
commitc38f76410ba0e7565e61b5646efe749034fc2be0 (patch)
tree5ed06163888cbc94e0a269f8acd077372ba1e822 /util
parentc26108f60386458a98af53ae015e2f24ecffc788 (diff)
downloadcoreboot-c38f76410ba0e7565e61b5646efe749034fc2be0.tar.gz
coreboot-c38f76410ba0e7565e61b5646efe749034fc2be0.tar.bz2
coreboot-c38f76410ba0e7565e61b5646efe749034fc2be0.zip
amdfwtool: Add missing parentheses in macro definition
Change-Id: I1b43dbb8cdc748960f25d7b0629aa81528a2a476 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73179 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'util')
-rw-r--r--util/amdfwtool/amdfwtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 0ee8ffbd881a..fae0beadb30d 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -469,7 +469,7 @@ typedef struct _context {
#define RUN_OFFSET_MODE(ctx, offset, mode) \
((mode) == AMD_ADDR_PHYSICAL ? RUN_BASE(ctx) + (offset) : \
((mode) == AMD_ADDR_REL_BIOS ? (offset) : \
- ((mode) == AMD_ADDR_REL_TAB ? (offset) - ctx.current_table : (offset))))
+ ((mode) == AMD_ADDR_REL_TAB ? (offset) - (ctx).current_table : (offset))))
#define RUN_OFFSET(ctx, offset) RUN_OFFSET_MODE((ctx), (offset), (ctx).address_mode)
#define RUN_TO_OFFSET(ctx, run) ((ctx).address_mode == AMD_ADDR_PHYSICAL ? \
(run) - RUN_BASE(ctx) : (run)) /* TODO: */