From e91e0e587c2723218aa948ca12e66efe7a7e9d0a Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Sun, 14 Aug 2016 15:29:37 -0700 Subject: [PATCH] ofproto-dpif-xlate: Use passed ctx in XLATE_REPORT_ERROR. XLATE_REPORT_ERROR is a macro that takes struct xlate_ctx as an argument but also implicitly uses 'ctx' from the local function scope. This works with current uses but it really should be using the argument. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index f0a25011f..bec599b4b 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -636,7 +636,7 @@ static struct vlog_rate_limit error_report_rl = VLOG_RATE_LIMIT_INIT(1, 5); \ ds_put_format(&ds, __VA_ARGS__); \ ds_put_cstr(&ds, ": "); \ - flow_format(&ds, &ctx->base_flow); \ + flow_format(&ds, &(CTX)->base_flow); \ VLOG_ERR_RL(&error_report_rl, "%s", ds_cstr(&ds)); \ ds_destroy(&ds); \ } \ -- 2.39.5