]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ofproto-dpif-xlate: Use passed ctx in XLATE_REPORT_ERROR.
authorJesse Gross <jesse@kernel.org>
Sun, 14 Aug 2016 22:29:37 +0000 (15:29 -0700)
committerJesse Gross <jesse@kernel.org>
Mon, 15 Aug 2016 16:24:20 +0000 (09:24 -0700)
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 <jesse@kernel.org>
Acked-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-xlate.c

index f0a25011fc426c7cc73db72880653dae09b94d5e..bec599b4bdb547e4247bc170c07cdedc5e808bd2 100644 (file)
@@ -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);                                    \
         }                                                       \