From: Jesse Gross Date: Sun, 14 Aug 2016 22:29:37 +0000 (-0700) Subject: ofproto-dpif-xlate: Use passed ctx in XLATE_REPORT_ERROR. X-Git-Tag: v2.12.3~4765 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e91e0e587c2723218aa948ca12e66efe7a7e9d0a;p=mirror_ovs.git 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 --- 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); \ } \