From 41920cc74fe00b407e45a43f6231ae48defb64b2 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 18 Jul 2007 17:44:32 +0200 Subject: [PATCH] add debugging output --- src/core/random-variable-default-value.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/random-variable-default-value.cc b/src/core/random-variable-default-value.cc index df36d02ba..689d05d2e 100644 --- a/src/core/random-variable-default-value.cc +++ b/src/core/random-variable-default-value.cc @@ -19,6 +19,9 @@ * Author: Mathieu Lacage */ #include "random-variable-default-value.h" +#include "ns3/debug.h" + +NS_DEBUG_COMPONENT_DEFINE ("RandomVariableDefaultValue"); namespace ns3 { @@ -69,6 +72,7 @@ RandomVariableDefaultValue::Parse (const std::string &value, if (type == "Constant") { double constant = ReadAsDouble (v, ok); + NS_DEBUG ("Constant constant=" << constant); if (mustCreate) { *pVariable = new ConstantVariable (constant); @@ -88,6 +92,7 @@ RandomVariableDefaultValue::Parse (const std::string &value, double maxVal; minVal = ReadAsDouble (min, ok); maxVal = ReadAsDouble (max, ok); + NS_DEBUG ("Uniform min=" << min << ", max=" << max); if (mustCreate) { *pVariable = new UniformVariable (minVal, maxVal);