X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f783ed4680c6862a1b7543237e89d1221334bae0..649ff8bac9ec72bc9321a7b21843cd41f7b7e7bc:/src/surf/ns3/my-point-to-point-helper.cc diff --git a/src/surf/ns3/my-point-to-point-helper.cc b/src/surf/ns3/my-point-to-point-helper.cc index f59149a353..7ac53db2b9 100644 --- a/src/surf/ns3/my-point-to-point-helper.cc +++ b/src/surf/ns3/my-point-to-point-helper.cc @@ -1,4 +1,9 @@ -/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* Copyright (c) 2011, 2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + /* * Copyright (c) 2008 INRIA * @@ -18,8 +23,7 @@ * Author: Mathieu Lacage */ -#include "ns3/abort.h" -#include "ns3/log.h" +#include #include "ns3/simulator.h" #include "ns3/point-to-point-net-device.h" #include "ns3/point-to-point-channel.h" @@ -35,7 +39,9 @@ #include "ns3/trace-helper.h" #include "my-point-to-point-helper.h" -NS_LOG_COMPONENT_DEFINE ("MyPointToPointHelper"); +#include "xbt/log.h" + +XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(ns3); ///> RED Parameters see src/node/red-queue.* for details //.AddAttribute ("Mode", @@ -158,7 +164,7 @@ MyPointToPointHelper::EnablePcapInternal (std::string prefix, Ptr nd, Ptr device = nd->GetObject (); if (device == 0) { - NS_LOG_INFO ("MyPointToPointHelper::EnablePcapInternal(): Device " << device << " not of type ns3::PointToPointNetDevice"); + XBT_INFO ("MyPointToPointHelper::EnablePcapInternal(): Device not of type ns3::PointToPointNetDevice"); return; } @@ -194,8 +200,7 @@ MyPointToPointHelper::EnableAsciiInternal ( Ptr device = nd->GetObject (); if (device == 0) { - NS_LOG_INFO ("MyPointToPointHelper::EnableAsciiInternal(): Device " << device << - " not of type ns3::PointToPointNetDevice"); + XBT_INFO ("MyPointToPointHelper::EnableAsciiInternal(): Device not of type ns3::PointToPointNetDevice"); return; }