secchan: Fix logging of datapath ID.
authorBen Pfaff <blp@nicira.com>
Mon, 2 Mar 2009 22:16:48 +0000 (14:16 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 2 Mar 2009 22:16:48 +0000 (14:16 -0800)
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

index f1ac717f36c5b2a9b4cf349cc7bb8db704443fc5..1485e4539be424df7912dd06209aca19fd059dc8 100644 (file)
@@ -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;