From 56df1e817c23de6eb5cae698611b0f1bec6ee8c1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 2 Mar 2009 14:16:48 -0800 Subject: [PATCH] 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. --- secchan/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2