Added missing newline chars to logging commands
[platform/core/uifw/dali-core.git] / dali / internal / update / manager / update-manager-debug.cpp
index 44326ca..c5f6159 100644 (file)
@@ -54,9 +54,8 @@ void PrintNodes( const Node& node, BufferIndex updateBufferIndex, int level )
   const Vector3& fullPos = node.GetWorldPosition(updateBufferIndex);
   const Quaternion& rotation = node.GetOrientation(updateBufferIndex);
   Vector3 axis;
-  float angle;
+  Radian angle;
   rotation.ToAxisAngle(axis, angle);
-  angle = angle * 180.0f / Math::PI;
 
   std::string nodeName= DALI_LOG_GET_OBJECT_STRING((&node));
 
@@ -68,13 +67,13 @@ void PrintNodes( const Node& node, BufferIndex updateBufferIndex, int level )
     oss << std::setprecision(2) << std::setiosflags(mask)
         << std::setw(level*2) << std::setfill(' ') << "";
     oss << "Node "  << nodeName << " " << &node
-        << "  Pos (" << position.x << ", " << position.y << ", " << position.z << ")"
-        << "  FullPos (" << fullPos.x << ", " << fullPos.y << ", " << fullPos.z << ")"
-        << "  Rot (" << angle << "deg <" << axis.x << ", " << axis.y << ", " << axis.z << ">)"
+        << "  Position (" << position.x << ", " << position.y << ", " << position.z << ")"
+        << "  WorldPosition (" << fullPos.x << ", " << fullPos.y << ", " << fullPos.z << ")"
+        << "  Orientation (" << Degree(angle).degree << "degrees <" << axis.x << ", " << axis.y << ", " << axis.z << ">)"
         << "  Scale (" << scale.x << ", " << scale.y << ", " << scale.z << ")"
         << std::endl;
 
-    DALI_LOG_INFO(gNodeLogFilter, Debug::Verbose, "%s", oss.str().c_str());
+    DALI_LOG_INFO(gNodeLogFilter, Debug::Verbose, "%s\n", oss.str().c_str());
   }
 
   {
@@ -86,7 +85,7 @@ void PrintNodes( const Node& node, BufferIndex updateBufferIndex, int level )
         << std::setw(level*2) << std::setfill(' ') << "";
 
     std::string trafoMatrix = Debug::MatrixToString(node.GetWorldMatrix(updateBufferIndex), 2, level*2);
-    DALI_LOG_INFO(gNodeLogFilter, Debug::Verbose, "%s", trafoMatrix.c_str());
+    DALI_LOG_INFO(gNodeLogFilter, Debug::Verbose, "%s\n", trafoMatrix.c_str());
   }
 
   ++level;