From: Ben Pfaff Date: Mon, 2 Mar 2009 22:16:48 +0000 (-0800) Subject: secchan: Fix logging of datapath ID. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56df1e817c23de6eb5cae698611b0f1bec6ee8c1;p=openvswitch secchan: Fix logging of datapath ID. ofproto was logging the datapath ID passed in as part of its settings, but that's allowed to be 0. Instead, it needs to log the datapath ID that is actually in use. --- diff --git a/secchan/ofproto.c b/secchan/ofproto.c index f1ac717f..1485e453 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -234,7 +234,7 @@ ofproto_create(const struct settings *settings) if (!p->datapath_id) { p->datapath_id = pick_datapath_id(&dpif); } - VLOG_INFO("using datapath ID %012"PRIx64, settings->datapath_id); + VLOG_INFO("using datapath ID %012"PRIx64, p->datapath_id); p->mfr_desc = settings->mfr_desc; p->hw_desc = settings->hw_desc; p->sw_desc = settings->sw_desc;