Added missing newline chars to logging commands 06/82306/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 2 Aug 2016 14:13:56 +0000 (15:13 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 2 Aug 2016 14:13:56 +0000 (15:13 +0100)
Change-Id: Iabec9a41aaead0f8fac0b0ec8c93cb2a80b54be7

21 files changed:
dali/devel-api/threading/conditional-wait.cpp
dali/devel-api/threading/mutex.cpp
dali/internal/common/core-impl.cpp
dali/internal/common/mutex-impl.cpp
dali/internal/event/actors/image-actor-impl.cpp
dali/internal/event/animation/constraint-base.cpp
dali/internal/event/common/stage-impl.cpp
dali/internal/event/common/type-info-impl.cpp
dali/internal/event/rendering/texture-impl.cpp
dali/internal/event/rendering/texture-set-impl.cpp
dali/internal/event/resources/archive.cpp
dali/internal/event/resources/resource-client.cpp
dali/internal/render/gl-resources/bitmap-texture.cpp
dali/internal/render/gl-resources/compressed-bitmap-texture.cpp
dali/internal/render/gl-resources/frame-buffer-texture.cpp
dali/internal/render/gl-resources/native-texture.cpp
dali/internal/render/renderers/render-renderer.cpp
dali/internal/update/manager/update-manager-debug.cpp
dali/internal/update/render-tasks/scene-graph-camera.cpp
dali/public-api/object/ref-object.cpp
dali/public-api/signals/base-signal.cpp

index 4a1ed8b..adc5760 100644 (file)
@@ -52,11 +52,11 @@ ConditionalWait::ConditionalWait()
 {
   if( pthread_mutex_init( &mImpl->mutex, NULL ) )
   {
-    DALI_LOG_ERROR( "Unable to initialise mutex in ConditionalWait" );
+    DALI_LOG_ERROR( "Unable to initialise mutex in ConditionalWait\n" );
   }
   if( pthread_cond_init( &mImpl->condition, NULL ) )
   {
-    DALI_LOG_ERROR( "Unable to initialise conditional" );
+    DALI_LOG_ERROR( "Unable to initialise conditional\n" );
   }
   mImpl->count = 0;
 }
@@ -65,11 +65,11 @@ ConditionalWait::~ConditionalWait()
 {
   if( pthread_cond_destroy( &mImpl->condition ) )
   {
-    DALI_LOG_ERROR( "Unable to destroy conditional" );
+    DALI_LOG_ERROR( "Unable to destroy conditional\n" );
   }
   if( pthread_mutex_destroy( &mImpl->mutex ) )
   {
-    DALI_LOG_ERROR( "Unable to destroy mutex in ConditionalWait" );
+    DALI_LOG_ERROR( "Unable to destroy mutex in ConditionalWait\n" );
   }
   delete mImpl;
 }
@@ -86,7 +86,7 @@ void ConditionalWait::Notify()
   {
     if( pthread_cond_broadcast( &mImpl->condition ) )
     {
-      DALI_LOG_ERROR( "Error calling pthread_cond_broadcast" );
+      DALI_LOG_ERROR( "Error calling pthread_cond_broadcast\n" );
     }
   }
   Internal::Mutex::Unlock( &mImpl->mutex );
@@ -105,7 +105,7 @@ void ConditionalWait::Notify( const ScopedLock& scope )
   {
     if( pthread_cond_broadcast( &mImpl->condition ) )
     {
-      DALI_LOG_ERROR( "Error calling pthread_cond_broadcast" );
+      DALI_LOG_ERROR( "Error calling pthread_cond_broadcast\n" );
     }
   }
 }
@@ -121,7 +121,7 @@ void ConditionalWait::Wait()
     // wait while condition changes
     if( pthread_cond_wait( &mImpl->condition, &mImpl->mutex ) ) // releases the lock whilst waiting
     {
-      DALI_LOG_ERROR( "Error calling pthread_cond_wait" );
+      DALI_LOG_ERROR( "Error calling pthread_cond_wait\n" );
       break;
     }
   }
@@ -144,7 +144,7 @@ void ConditionalWait::Wait( const ScopedLock& scope )
     // wait while condition changes
     if( pthread_cond_wait( &mImpl->condition, &mImpl->mutex ) ) // releases the lock whilst waiting
     {
-      DALI_LOG_ERROR( "Error calling pthread_cond_wait" );
+      DALI_LOG_ERROR( "Error calling pthread_cond_wait\n" );
       break;
     }
   }
index fdb9cde..4e0cb30 100644 (file)
@@ -39,7 +39,7 @@ Mutex::Mutex()
 {
   if( pthread_mutex_init( &mImpl->mutex, NULL ) )
   {
-    DALI_LOG_ERROR( "Unable to initialise Mutex" );
+    DALI_LOG_ERROR( "Unable to initialise Mutex\n" );
   }
   mImpl->locked = false;
 }
@@ -48,7 +48,7 @@ Mutex::~Mutex()
 {
   if( pthread_mutex_destroy( &mImpl->mutex ) )
   {
-    DALI_LOG_ERROR( "Unable to destroy Mutex" );
+    DALI_LOG_ERROR( "Unable to destroy Mutex\n" );
   }
   // nothing else to do as there is no Lock/Unlock API
   // ScopedLock destructor will always unlock the mutex
index c9ca158..313fa72 100644 (file)
@@ -313,7 +313,7 @@ void Core::ProcessEvents()
   // Guard against calls to ProcessEvents() during ProcessEvents()
   if( mProcessingEvent )
   {
-    DALI_LOG_ERROR( "ProcessEvents should not be called from within ProcessEvents!" );
+    DALI_LOG_ERROR( "ProcessEvents should not be called from within ProcessEvents!\n" );
     mRenderController.RequestProcessEventsOnIdle();
     return;
   }
index c046dc3..06d1ddf 100644 (file)
@@ -109,7 +109,7 @@ void Lock( pthread_mutex_t* mutex )
 
   if( pthread_mutex_lock( mutex ) )
   {
-    DALI_LOG_ERROR( "Error calling pthread_mutex_lock" );
+    DALI_LOG_ERROR( "Error calling pthread_mutex_lock\n" );
   }
 }
 
@@ -117,7 +117,7 @@ void Unlock( pthread_mutex_t* mutex )
 {
   if( pthread_mutex_unlock( mutex ) )
   {
-    DALI_LOG_ERROR( "Error calling pthread_mutex_unlock" );
+    DALI_LOG_ERROR( "Error calling pthread_mutex_unlock\n" );
   }
   --gThreadLockCount;
 }
index 93d1ab4..92016de 100644 (file)
@@ -271,25 +271,25 @@ void ImageActor::ClearPixelArea()
 
 void ImageActor::SetStyle( Dali::ImageActor::Style style )
 {
-  DALI_LOG_WARNING( "SetStyle Deprecated. Only STYLE_QUAD supported." );
+  DALI_LOG_WARNING( "SetStyle Deprecated. Only STYLE_QUAD supported.\n" );
   mStyle = style;
 }
 
 Dali::ImageActor::Style ImageActor::GetStyle() const
 {
-  DALI_LOG_WARNING( "GetStyle Deprecated. Only STYLE_QUAD supported." );
+  DALI_LOG_WARNING( "GetStyle Deprecated. Only STYLE_QUAD supported.\n" );
   return mStyle;
 }
 
 void ImageActor::SetNinePatchBorder( const Vector4& border )
 {
-  DALI_LOG_WARNING( "SetNinePatchBorder Deprecated. Only STYLE_QUAD supported." );
+  DALI_LOG_WARNING( "SetNinePatchBorder Deprecated. Only STYLE_QUAD supported.\n" );
   mNinePatchBorder = border;
 }
 
 Vector4 ImageActor::GetNinePatchBorder() const
 {
-  DALI_LOG_WARNING( "GetNinePatchBorder Deprecated. Only STYLE_QUAD supported." );
+  DALI_LOG_WARNING( "GetNinePatchBorder Deprecated. Only STYLE_QUAD supported.\n" );
   return mNinePatchBorder;
 }
 
index f781543..c702014 100644 (file)
@@ -71,7 +71,7 @@ void ConstraintBase::AddSource( Source source )
     }
     else
     {
-      DALI_LOG_ERROR( "Constraint source object not found" );
+      DALI_LOG_ERROR( "Constraint source object not found\n" );
     }
   }
 }
index fe95c3e..aea8308 100644 (file)
@@ -412,7 +412,7 @@ void Stage::SetStereoBase( float stereoBase )
 {
   if( ! Equals( mStereoBase, stereoBase ) )
   {
-    DALI_LOG_INFO( Debug::Filter::gActor, Debug::Concise, "old( %.2f) new(%.2f)", mStereoBase, stereoBase );
+    DALI_LOG_INFO( Debug::Filter::gActor, Debug::Concise, "old( %.2f) new(%.2f)\n", mStereoBase, stereoBase );
     mStereoBase = stereoBase;
 
     switch( mViewMode  )
@@ -572,7 +572,7 @@ Dali::Stage::EventProcessingFinishedSignalType& Stage::EventProcessingFinishedSi
 
 Dali::Stage::TouchedSignalType& Stage::TouchedSignal()
 {
-  DALI_LOG_WARNING( "Deprecated. Use TouchSignal() instead." );
+  DALI_LOG_WARNING( "Deprecated. Use TouchSignal() instead.\n" );
   return mTouchedSignal;
 }
 
index b0809a7..479f2e8 100644 (file)
@@ -349,7 +349,7 @@ void TypeInfo::AddActionFunction( const std::string &actionName, Dali::TypeInfo:
     }
     else
     {
-      DALI_LOG_WARNING("Action already exists in TypeRegistry Type", actionName.c_str());
+      DALI_LOG_WARNING("Action already exists in TypeRegistry Type\n", actionName.c_str());
     }
   }
 }
@@ -371,7 +371,7 @@ void TypeInfo::AddConnectorFunction( const std::string& signalName, Dali::TypeIn
     }
     else
     {
-      DALI_LOG_WARNING("Signal name already exists in TypeRegistry Type for signal connector function", signalName.c_str());
+      DALI_LOG_WARNING("Signal name already exists in TypeRegistry Type for signal connector function\n", signalName.c_str());
     }
   }
 }
index 704ab40..c0f658c 100644 (file)
@@ -108,14 +108,14 @@ bool NewTexture::Upload( PixelDataPtr pixelData,
   {
     if( mNativeImage )
     {
-      DALI_LOG_ERROR( "OpenGL ES does not support uploading data to native texture");
+      DALI_LOG_ERROR( "OpenGL ES does not support uploading data to native texture\n");
     }
     else
     {
       unsigned int pixelDataSize = pixelData->GetWidth()*pixelData->GetHeight();
       if( pixelData->GetBuffer() == NULL || pixelDataSize == 0 )
       {
-        DALI_LOG_ERROR( "PixelData is empty");
+        DALI_LOG_ERROR( "PixelData is empty\n");
       }
       else
       {
@@ -124,12 +124,12 @@ bool NewTexture::Upload( PixelDataPtr pixelData,
         {
           if( pixelDataSize < width * height )
           {
-            DALI_LOG_ERROR( "PixelData of an incorrect size when trying to update texture");
+            DALI_LOG_ERROR( "PixelData of an incorrect size when trying to update texture\n");
           }
           else if( ( xOffset + width  > ( mWidth  / (1<<mipmap) ) ) ||
               ( yOffset + height > ( mHeight / (1<<mipmap) ) ) )
           {
-            DALI_LOG_ERROR( "Texture update area out of bounds");
+            DALI_LOG_ERROR( "Texture update area out of bounds\n");
           }
           else
           {
@@ -141,7 +141,7 @@ bool NewTexture::Upload( PixelDataPtr pixelData,
         }
         else
         {
-          DALI_LOG_ERROR( "Bad format");
+          DALI_LOG_ERROR( "Bad format\n");
         }
       }
     }
index 0c10ea2..110eece 100644 (file)
@@ -40,7 +40,7 @@ void TextureSet::SetImage( size_t index, ImagePtr image )
 {
   if( !mNewTextures.empty() )
   {
-    DALI_LOG_ERROR( "Error: Cannot mix images and textures in the same TextureSet");
+    DALI_LOG_ERROR( "Error: Cannot mix images and textures in the same TextureSet\n");
     return;
   }
 
@@ -83,7 +83,7 @@ void TextureSet::SetTexture( size_t index, NewTexturePtr texture )
 {
   if( !mImages.empty() )
   {
-    DALI_LOG_ERROR( "Error: Cannot mix images and textures in the same texture set");
+    DALI_LOG_ERROR( "Error: Cannot mix images and textures in the same texture set\n");
     return;
   }
 
@@ -119,7 +119,7 @@ Image* TextureSet::GetImage( size_t index ) const
   }
   else
   {
-    DALI_LOG_ERROR( "Error: Invalid index to TextureSet::GetImage");
+    DALI_LOG_ERROR( "Error: Invalid index to TextureSet::GetImage\n");
   }
 
   return result;
@@ -134,7 +134,7 @@ NewTexture* TextureSet::GetTexture( size_t index ) const
   }
   else
   {
-    DALI_LOG_ERROR( "Error: Invalid index to TextureSet::GetTexture");
+    DALI_LOG_ERROR( "Error: Invalid index to TextureSet::GetTexture\n");
   }
 
   return result;
@@ -176,7 +176,7 @@ Sampler* TextureSet::GetSampler( size_t index ) const
   }
   else
   {
-    DALI_LOG_ERROR( "Error: Invalid index to TextureSet::GetSampler");
+    DALI_LOG_ERROR( "Error: Invalid index to TextureSet::GetSampler\n");
   }
 
   return result;
index a2400e3..fe163c6 100644 (file)
@@ -50,7 +50,7 @@ Archive::~Archive()
 {
   if(!mChunkStack.empty())
   {
-    DALI_LOG_ERROR("mChunkStack should be empty!");
+    DALI_LOG_ERROR("mChunkStack should be empty!\n");
   }
 }
 
index c0f7bf0..2a0e2cd 100644 (file)
@@ -153,7 +153,7 @@ ResourceTicketPtr ResourceClient::DecodeResource(
       case ResourceNativeImage:
       case ResourceTargetImage:
       {
-        DALI_LOG_ERROR( "Unsupported resource type passed for decoding from a memory buffer." );
+        DALI_LOG_ERROR( "Unsupported resource type passed for decoding from a memory buffer.\n" );
       }
     }
 
index 19061e7..58d80c2 100644 (file)
@@ -189,7 +189,7 @@ void BitmapTexture::Update( Integration::Bitmap* bitmap )
   DALI_ASSERT_DEBUG( bitmap != 0 );
   if( !bitmap )
   {
-    DALI_LOG_ERROR( "Passed a null bitmap to update this bitmap texture." );
+    DALI_LOG_ERROR( "Passed a null bitmap to update this bitmap texture.\n" );
     return;
   }
 
@@ -199,7 +199,7 @@ void BitmapTexture::Update( Integration::Bitmap* bitmap )
   if( !bitmapPackedPixels )
   {
     ///! This should never happen.
-    DALI_LOG_ERROR("Passed an incompatible bitmap type to update this bitmap texture.");
+    DALI_LOG_ERROR("Passed an incompatible bitmap type to update this bitmap texture.\n");
     return;
   }
   mBitmap = bitmap;
index 7a23adb..3ec72db 100644 (file)
@@ -101,7 +101,7 @@ void CompressedBitmapTexture::Update( Integration::Bitmap* bitmap )
 
   if( !bitmap )
   {
-    DALI_LOG_ERROR( "Passed a null bitmap to update this compressed bitmap texture." );
+    DALI_LOG_ERROR( "Passed a null bitmap to update this compressed bitmap texture.\n" );
     return;
   }
 
index 9d0259a..e1c697e 100644 (file)
@@ -136,7 +136,7 @@ bool FrameBufferTexture::CreateGlTexture()
   if( mNativeImage &&
       !mNativeImage->GlExtensionCreate() )
   {
-    DALI_LOG_ERROR( "Error creating native image!" );
+    DALI_LOG_ERROR( "Error creating native image!\n" );
     return false;
   }
 
index 43a5db1..8110880 100644 (file)
@@ -104,7 +104,7 @@ bool NativeTexture::CreateGlTexture()
   }
   else
   {
-    DALI_LOG_ERROR( "Error creating native image!" );
+    DALI_LOG_ERROR( "Error creating native image!\n" );
   }
 
   return mId != 0;
index 01c03e3..cbad8bb 100644 (file)
@@ -593,7 +593,7 @@ void Renderer::Render( Context& context,
     DALI_ASSERT_DEBUG( program && "Default shader should always have a program available." );
     if( !program )
     {
-      DALI_LOG_ERROR( "Failed to get program for shader at address %p.", (void*)&mRenderDataProvider->GetShader() );
+      DALI_LOG_ERROR( "Failed to get program for shader at address %p.\n", (void*)&mRenderDataProvider->GetShader() );
       return;
     }
   }
index 1c21fe4..c5f6159 100644 (file)
@@ -73,7 +73,7 @@ void PrintNodes( const Node& node, BufferIndex updateBufferIndex, int level )
         << "  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());
   }
 
   {
@@ -85,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;
index 158ed37..c9e4b7a 100644 (file)
@@ -65,7 +65,7 @@ void Frustum(Matrix& result, float left, float right, float bottom, float top, f
   float deltaZ = far - near;
   if ((near <= 0.0f) || (far <= 0.0f) || Equals(right, left) || Equals(bottom, top) || (deltaZ <= 0.0f))
   {
-    DALI_LOG_ERROR("Invalid parameters passed into Frustum!");
+    DALI_LOG_ERROR("Invalid parameters passed into Frustum!\n");
     DALI_ASSERT_DEBUG("Invalid parameters passed into Frustum!");
     return;
   }
@@ -104,7 +104,7 @@ void Orthographic(Matrix& result, float left, float right, float bottom, float t
 {
   if ( Equals(right, left) || Equals(top, bottom) || Equals(far, near) )
   {
-    DALI_LOG_ERROR( "Cannot create orthographic projection matrix with a zero dimension." );
+    DALI_LOG_ERROR( "Cannot create orthographic projection matrix with a zero dimension.\n" );
     DALI_ASSERT_DEBUG( "Cannot create orthographic projection matrix with a zero dimension." );
     return;
   }
index 5805e36..3060f4b 100644 (file)
@@ -42,7 +42,7 @@ RefObject::~RefObject()
 #ifdef ENABLE_DEBUG
   if(mCount)
   {
-    DALI_LOG_ERROR("mCount should be zero, deleting referenced object!");
+    DALI_LOG_ERROR("mCount should be zero, deleting referenced object!\n");
   }
 #endif // ENABLE_DEBUG
 }
index 6150994..8d759e7 100644 (file)
@@ -314,7 +314,7 @@ BaseSignal::EmitGuard::EmitGuard( bool& flag )
   else
   {
     // mFlag is NULL when Emit() is called during Emit()
-    DALI_LOG_ERROR( "Cannot call Emit() from inside Emit()" );
+    DALI_LOG_ERROR( "Cannot call Emit() from inside Emit()\n" );
   }
 }