[3.0] Added missing newline chars to logging commands 04/84904/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 2 Aug 2016 14:14:25 +0000 (15:14 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Mon, 22 Aug 2016 12:37:18 +0000 (13:37 +0100)
Change-Id: Ibf20efdcc8e985653952a5398493b299a15aa547

36 files changed:
adaptors/base/performance-logging/networking/event/automation.cpp
adaptors/common/event-loop/ecore/ecore-file-descriptor-monitor.cpp
adaptors/common/event-loop/lib-uv/uv-file-descriptor-monitor.cpp
adaptors/common/event-loop/lib-uv/uv-timer-impl.cpp
adaptors/common/gl/egl-image-extensions.cpp
adaptors/common/kernel-trace.cpp
adaptors/common/networking/socket-impl.cpp
adaptors/common/video-player-impl.cpp
adaptors/devel-api/adaptor-framework/bitmap-saver.cpp
adaptors/ecore/common/ecore-indicator-impl.cpp
adaptors/ecore/common/ecore-virtual-keyboard.cpp
adaptors/ecore/wayland/display-connection-impl-ecore-wl.cpp
adaptors/ecore/wayland/imf-manager-impl-ecore-wl.cpp
adaptors/emscripten/egl-implementation-emscripten.cpp
adaptors/tizen/framework-tizen.cpp
adaptors/tizen/gl/egl-image-extensions-tizen.cpp
adaptors/tizen/native-image-source-impl-tizen.cpp
adaptors/tizen/tilt-sensor-impl-tizen.cpp
adaptors/ubuntu/tts-player-impl-ubuntu.cpp
adaptors/wayland/compositor-output-region/compositor-output.cpp
adaptors/wayland/input/seat.cpp
adaptors/wayland/input/text/imf/imf-manager-impl-wl.cpp
adaptors/wayland/render-surface/render-surface-wl.cpp
adaptors/wayland/wayland-manager.cpp
adaptors/x11/display-connection-impl-x.cpp
adaptors/x11/ecore-x-event-handler.cpp
adaptors/x11/imf-manager-impl-x.cpp
adaptors/x11/native-image-source-impl-x.cpp
platform-abstractions/portable/image-operations.cpp
platform-abstractions/tizen/data-cache/data-compression.cpp
platform-abstractions/tizen/image-loaders/loader-ico.cpp
platform-abstractions/tizen/image-loaders/loader-jpeg-turbo.cpp
platform-abstractions/tizen/image-loaders/loader-png.cpp
platform-abstractions/tizen/image-loaders/loader-wbmp.cpp
platform-abstractions/tizen/resource-loader/resource-thread-base.cpp
plugins/video-player/tizen-video-player.cpp

index d755336..f73f096 100644 (file)
@@ -74,7 +74,7 @@ public:
     int count = sscanf( mString.c_str(),"%f,%f",&vec2.x,&vec2.y );
     if( count != 2 )
     {
-      DALI_LOG_ERROR("Bad format");
+      DALI_LOG_ERROR("Bad format\n");
     }
     return vec2;
   }
@@ -86,7 +86,7 @@ public:
     int count = sscanf( mString.c_str(),"%f,%f,%f",&vec3.x,&vec3.y,&vec3.z );
     if( count != 3 )
     {
-      DALI_LOG_ERROR("Bad format");
+      DALI_LOG_ERROR("Bad format\n");
     }
     return vec3;
   }
@@ -98,7 +98,7 @@ public:
     int count = sscanf( mString.c_str(),"%f,%f,%f,%f", &vec4.x, &vec4.y, &vec4.z, &vec4.w );
     if( count != 4 )
     {
-      DALI_LOG_ERROR("Bad format");
+      DALI_LOG_ERROR("Bad format\n");
     }
     return vec4;
   }
index f58ba90..81a943e 100644 (file)
@@ -73,7 +73,7 @@ struct FileDescriptorMonitor::Impl
     if( ecore_main_fd_handler_active_get( handler, ECORE_FD_ERROR) )
     {
       CallbackBase::Execute( *impl->mCallback, FileDescriptorMonitor::FD_ERROR);
-      DALI_LOG_ERROR("ECORE_FD_ERROR occurred on %d", impl->mFileDescriptor);
+      DALI_LOG_ERROR("ECORE_FD_ERROR occurred on %d\n", impl->mFileDescriptor);
 
       return ECORE_CALLBACK_CANCEL;
     }
index 6007f23..053a2c6 100644 (file)
@@ -87,7 +87,7 @@ public:
 
        if( status < 0)
        {
-         DALI_LOG_ERROR("LibUV FD_ERROR occurred on %d", impl->mFileDescriptor);
+         DALI_LOG_ERROR("LibUV FD_ERROR occurred on %d\n", impl->mFileDescriptor);
          CallbackBase::Execute( *impl->mCallback, FileDescriptorMonitor::FD_ERROR );
          return;
        }
index 01ec2f4..92b6213 100644 (file)
@@ -113,7 +113,7 @@ struct Timer::Impl
 
 TimerPtr Timer::New( unsigned int milliSec )
 {
-  DALI_LOG_ERROR(" new timer");
+  DALI_LOG_ERROR(" new timer\n");
   TimerPtr timer( new Timer( milliSec ) );
   return timer;
 }
index c40d8f7..b77bfa1 100644 (file)
@@ -104,32 +104,32 @@ void* EglImageExtensions::CreateImageKHR(EGLClientBuffer clientBuffer)
       }
       case EGL_BAD_DISPLAY:
       {
-        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object" );
+        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object\n" );
         break;
       }
       case EGL_BAD_CONTEXT:
       {
-        DALI_LOG_ERROR( "EGL_BAD_CONTEXT: Invalid EGLContext object" );
+        DALI_LOG_ERROR( "EGL_BAD_CONTEXT: Invalid EGLContext object\n" );
         break;
       }
       case EGL_BAD_PARAMETER:
       {
-        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: Invalid target parameter or attribute in attrib_list" );
+        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: Invalid target parameter or attribute in attrib_list\n" );
         break;
       }
       case EGL_BAD_MATCH:
       {
-        DALI_LOG_ERROR( "EGL_BAD_MATCH: attrib_list does not match target" );
+        DALI_LOG_ERROR( "EGL_BAD_MATCH: attrib_list does not match target\n" );
         break;
       }
       case EGL_BAD_ACCESS:
       {
-        DALI_LOG_ERROR( "EGL_BAD_ACCESS: Previously bound off-screen, or EGLImage sibling error" );
+        DALI_LOG_ERROR( "EGL_BAD_ACCESS: Previously bound off-screen, or EGLImage sibling error\n" );
         break;
       }
       case EGL_BAD_ALLOC:
       {
-        DALI_LOG_ERROR( "EGL_BAD_ALLOC: Insufficient memory is available" );
+        DALI_LOG_ERROR( "EGL_BAD_ALLOC: Insufficient memory is available\n" );
         break;
       }
       default:
@@ -166,17 +166,17 @@ void EglImageExtensions::DestroyImageKHR(void* eglImageKHR)
     {
       case EGL_BAD_DISPLAY:
       {
-        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object" );
+        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object\n" );
         break;
       }
       case EGL_BAD_PARAMETER:
       {
-        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: eglImage is not a valid EGLImageKHR object created with respect to EGLDisplay" );
+        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: eglImage is not a valid EGLImageKHR object created with respect to EGLDisplay\n" );
         break;
       }
       case EGL_BAD_ACCESS:
       {
-        DALI_LOG_ERROR( "EGL_BAD_ACCESS: EGLImage sibling error" );
+        DALI_LOG_ERROR( "EGL_BAD_ACCESS: EGLImage sibling error\n" );
         break;
       }
       default:
index e654fc8..00fc48e 100644 (file)
@@ -84,7 +84,7 @@ void KernelTrace::Trace( const PerformanceMarker& marker, const std::string& tra
       if( !mLoggedError )
       {
         mLoggedError = true;
-        DALI_LOG_ERROR("Failed to open /sys/kernel/debug/tracing/trace_marker for writing please check file permissions.");
+        DALI_LOG_ERROR("Failed to open /sys/kernel/debug/tracing/trace_marker for writing please check file permissions.\n");
       }
 
     }
index 05f2862..d5dab6a 100644 (file)
@@ -61,7 +61,7 @@ Socket::Socket( Protocol protocol , int fileDescriptor )
     mSocketFileDescriptor = socket( addressFamily,type, netProtocol);
     if( mSocketFileDescriptor == -1 )
     {
-      DALI_LOG_ERROR( "Unable to create socket" );
+      DALI_LOG_ERROR( "Unable to create socket\n" );
     }
   }
   else
@@ -100,7 +100,7 @@ bool Socket::CloseSocket()
 
   if( ret == -1 )
   {
-    DALI_LOG_ERROR("Socket close failed");
+    DALI_LOG_ERROR("Socket close failed\n");
     return false;
   }
   return true;
@@ -110,7 +110,7 @@ bool Socket::Bind( uint16_t port )
 {
   if( ! SocketIsOpen() || mBound )
   {
-     DALI_LOG_ERROR("Socket is invalid, or already bound");
+     DALI_LOG_ERROR("Socket is invalid, or already bound\n");
      return false;
   }
   struct sockaddr_in serverAddress;
@@ -140,14 +140,14 @@ bool Socket::Listen( int blacklog)
 {
   if( ! mBound || mListening )
   {
-    DALI_LOG_ERROR("socket is not bound, or already opened for listening");
+    DALI_LOG_ERROR("socket is not bound, or already opened for listening\n");
     return false;
   }
   int ret =  listen( mSocketFileDescriptor, blacklog);
 
   if( ret == -1 )
   {
-    DALI_LOG_ERROR("Listen failed");
+    DALI_LOG_ERROR("Listen failed\n");
     return false;
   }
 
@@ -160,7 +160,7 @@ SocketInterface* Socket::Accept() const
 {
   if( !mListening )
   {
-    DALI_LOG_ERROR("socket is not being listened to");
+    DALI_LOG_ERROR("socket is not being listened to\n");
     return NULL;
   }
 
@@ -171,7 +171,7 @@ SocketInterface* Socket::Accept() const
   int clientFileDescriptor = accept( mSocketFileDescriptor, &clientAddress, &addressLength);
   if( clientFileDescriptor == -1 )
   {
-     DALI_LOG_ERROR("Accept failed");
+     DALI_LOG_ERROR("Accept failed\n");
      return NULL;
   }
 
@@ -190,7 +190,7 @@ bool Socket::CreateQuitPipe()
     int ret = pipe( mQuitPipe );
     if( ret != 0)
     {
-      DALI_LOG_ERROR("Pipe creation failed");
+      DALI_LOG_ERROR("Pipe creation failed\n");
       return false;
     }
     mQuitPipeCreated = true;
@@ -231,7 +231,7 @@ SocketInterface::SelectReturn Socket::Select()
     int ret = select( maxFd+1, &readFileDescriptors, NULL, &exceptFileDescriptors, NULL );
     if( ret == -1 )
     {
-      DALI_LOG_ERROR("select failed");
+      DALI_LOG_ERROR("select failed\n");
       return ERROR;
     }
     else if ( FD_ISSET( mQuitPipe[0] , &readFileDescriptors ))
index d6c818c..b87f091 100644 (file)
@@ -100,7 +100,7 @@ void VideoPlayer::Initialize()
 
   if( mPlugin == NULL )
   {
-    DALI_LOG_ERROR( "Can't create the VideoPlayerPlugin object" );
+    DALI_LOG_ERROR( "Can't create the VideoPlayerPlugin object\n" );
     return;
   }
 
index ae83571..ef5bf4b 100644 (file)
@@ -41,7 +41,7 @@ FileFormat GetFormatFromFileName( const std::string& filename )
 {
   if (filename.length() < 5)
   {
-    DALI_LOG_WARNING("Invalid (short) filename.");
+    DALI_LOG_WARNING("Invalid (short) filename.\n");
   }
   FileFormat format(INVALID_FORMAT);
 
@@ -106,7 +106,7 @@ bool EncodeToFormat( const unsigned char* pixelBuffer,
     }
     default:
     {
-      DALI_LOG_ERROR("Format not supported for image encoding (supported formats are PNG and JPEG)");
+      DALI_LOG_ERROR("Format not supported for image encoding (supported formats are PNG and JPEG)\n");
       break;
     }
   }
@@ -127,7 +127,7 @@ bool EncodeToFile(const unsigned char* const pixelBuffer,
   const bool encodeResult = EncodeToFormat( pixelBuffer, pixbufEncoded, format, width, height, pixelFormat );
   if(!encodeResult)
   {
-    DALI_LOG_ERROR("Encoding pixels failed");
+    DALI_LOG_ERROR("Encoding pixels failed\n");
     return false;
   }
   return TizenPlatform::ResourceLoader::SaveFile( filename, pixbufEncoded.Begin(), pixbufEncoded.Count() );
index d0bda15..a57aaa6 100644 (file)
@@ -1244,7 +1244,7 @@ void Indicator::DataReceived( void* event )
 
             if (msgDataSize != (int)sizeof(IpcIndicatorDataAnimation))
             {
-              DALI_LOG_ERROR("Message data is incorrect");
+              DALI_LOG_ERROR("Message data is incorrect\n");
               break;
             }
 
index 78a09bc..ea0b79a 100644 (file)
@@ -91,7 +91,7 @@ void InputPanelStateChangeCallback( void* data, Ecore_IMF_Context* context, int
 
 void InputPanelLanguageChangeCallback( void* data, Ecore_IMF_Context* context, int value )
 {
-  DALI_LOG_INFO( gLogFilter, Debug::General, "VKB InputPanelLanguageChangeCallback" );
+  DALI_LOG_INFO( gLogFilter, Debug::General, "VKB InputPanelLanguageChangeCallback\n" );
 
   // Emit the signal that the language has changed
   gKeyboardLanguageChangedSignal.Emit();
index 68c7c4f..eb262c5 100644 (file)
@@ -68,7 +68,7 @@ bool DisplayConnection::InitializeEgl(EglInterface& egl)
 
   if( !eglImpl.InitializeGles( mDisplay ) )
   {
-    DALI_LOG_ERROR("Failed to initialize GLES.");
+    DALI_LOG_ERROR("Failed to initialize GLES.\n");
     return false;
   }
 
index 833b125..825b444 100644 (file)
@@ -173,7 +173,7 @@ Dali::ImfManager ImfManager::Get()
       }
       else
       {
-        DALI_LOG_ERROR("Failed to get native window handle");
+        DALI_LOG_ERROR("Failed to get native window handle\n");
       }
     }
   }
index f13e348..eec071a 100644 (file)
@@ -237,62 +237,62 @@ void EglImplementation::MakeContextCurrent()
     {
       case EGL_BAD_DISPLAY:
       {
-        DALI_LOG_ERROR("EGL_BAD_DISPLAY : Display is not an EGL display connection");
+        DALI_LOG_ERROR("EGL_BAD_DISPLAY : Display is not an EGL display connection\n");
         break;
       }
       case EGL_NOT_INITIALIZED:
       {
-        DALI_LOG_ERROR("EGL_NOT_INITIALIZED : Display has not been initialized");
+        DALI_LOG_ERROR("EGL_NOT_INITIALIZED : Display has not been initialized\n");
         break;
       }
       case EGL_BAD_SURFACE:
       {
-        DALI_LOG_ERROR("EGL_BAD_SURFACE : Draw or read is not an EGL surface");
+        DALI_LOG_ERROR("EGL_BAD_SURFACE : Draw or read is not an EGL surface\n");
         break;
       }
       case EGL_BAD_CONTEXT:
       {
-        DALI_LOG_ERROR("EGL_BAD_CONTEXT : Context is not an EGL rendering context");
+        DALI_LOG_ERROR("EGL_BAD_CONTEXT : Context is not an EGL rendering context\n");
         break;
       }
       case EGL_BAD_MATCH:
       {
-        DALI_LOG_ERROR("EGL_BAD_MATCH : Draw or read are not compatible with context, or if context is set to EGL_NO_CONTEXT and draw or read are not set to EGL_NO_SURFACE, or if draw or read are set to EGL_NO_SURFACE and context is not set to EGL_NO_CONTEXT");
+        DALI_LOG_ERROR("EGL_BAD_MATCH : Draw or read are not compatible with context, or if context is set to EGL_NO_CONTEXT and draw or read are not set to EGL_NO_SURFACE, or if draw or read are set to EGL_NO_SURFACE and context is not set to EGL_NO_CONTEXT\n");
         break;
       }
       case EGL_BAD_ACCESS:
       {
-        DALI_LOG_ERROR("EGL_BAD_ACCESS : Context is current to some other thread");
+        DALI_LOG_ERROR("EGL_BAD_ACCESS : Context is current to some other thread\n");
         break;
       }
       case EGL_BAD_NATIVE_PIXMAP:
       {
-        DALI_LOG_ERROR("EGL_BAD_NATIVE_PIXMAP : A native pixmap underlying either draw or read is no longer valid.");
+        DALI_LOG_ERROR("EGL_BAD_NATIVE_PIXMAP : A native pixmap underlying either draw or read is no longer valid.\n");
         break;
       }
       case EGL_BAD_NATIVE_WINDOW:
       {
-        DALI_LOG_ERROR("EGL_BAD_NATIVE_WINDOW : A native window underlying either draw or read is no longer valid.");
+        DALI_LOG_ERROR("EGL_BAD_NATIVE_WINDOW : A native window underlying either draw or read is no longer valid.\n");
         break;
       }
       case EGL_BAD_CURRENT_SURFACE:
       {
-        DALI_LOG_ERROR("EGL_BAD_CURRENT_SURFACE : The previous context has unflushed commands and the previous surface is no longer valid.");
+        DALI_LOG_ERROR("EGL_BAD_CURRENT_SURFACE : The previous context has unflushed commands and the previous surface is no longer valid.\n");
         break;
       }
       case EGL_BAD_ALLOC:
       {
-        DALI_LOG_ERROR("EGL_BAD_ALLOC : Allocation of ancillary buffers for draw or read were delayed until eglMakeCurrent is called, and there are not enough resources to allocate them");
+        DALI_LOG_ERROR("EGL_BAD_ALLOC : Allocation of ancillary buffers for draw or read were delayed until eglMakeCurrent is called, and there are not enough resources to allocate them\n");
         break;
       }
       case EGL_CONTEXT_LOST:
       {
-        DALI_LOG_ERROR("EGL_CONTEXT_LOST : If a power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering");
+        DALI_LOG_ERROR("EGL_CONTEXT_LOST : If a power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering\n");
         break;
       }
       default:
       {
-        DALI_LOG_ERROR("Unknown error");
+        DALI_LOG_ERROR("Unknown error\n");
         break;
       }
     }
@@ -430,27 +430,27 @@ void EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth )
     {
       case EGL_BAD_DISPLAY:
       {
-        DALI_LOG_ERROR("Display is not an EGL display connection");
+        DALI_LOG_ERROR("Display is not an EGL display connection\n");
         break;
       }
       case EGL_BAD_ATTRIBUTE:
       {
-        DALI_LOG_ERROR("The parameter confirAttribs contains an invalid frame buffer configuration attribute or an attribute value that is unrecognized or out of range");
+        DALI_LOG_ERROR("The parameter confirAttribs contains an invalid frame buffer configuration attribute or an attribute value that is unrecognized or out of range\n");
         break;
       }
       case EGL_NOT_INITIALIZED:
       {
-        DALI_LOG_ERROR("Display has not been initialized");
+        DALI_LOG_ERROR("Display has not been initialized\n");
         break;
       }
       case EGL_BAD_PARAMETER:
       {
-        DALI_LOG_ERROR("The parameter numConfig is NULL");
+        DALI_LOG_ERROR("The parameter numConfig is NULL\n");
         break;
       }
       default:
       {
-        DALI_LOG_ERROR("Unknown error");
+        DALI_LOG_ERROR("Unknown error\n");
       }
     }
     DALI_ASSERT_ALWAYS(false && "eglChooseConfig failed!");
@@ -458,7 +458,7 @@ void EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth )
 
   if ( numConfigs != 1 )
   {
-    DALI_LOG_ERROR("No configurations found.");
+    DALI_LOG_ERROR("No configurations found.\n");
     TEST_EGL_ERROR("eglChooseConfig");
   }
 }
index d70ecc3..47ef3c4 100644 (file)
@@ -356,7 +356,7 @@ void Framework::Run()
   ret = mImpl->AppMain();
   if (ret != APP_ERROR_NONE)
   {
-    DALI_LOG_ERROR("Framework::Run(), ui_app_main() is failed. err = %d", ret);
+    DALI_LOG_ERROR("Framework::Run(), ui_app_main() is failed. err = %d\n", ret);
   }
   mRunning = false;
 }
index 013b9ba..ad1edb6 100644 (file)
@@ -108,32 +108,32 @@ void* EglImageExtensions::CreateImageKHR(EGLClientBuffer clientBuffer)
       }
       case EGL_BAD_DISPLAY:
       {
-        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object" );
+        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object\n" );
         break;
       }
       case EGL_BAD_CONTEXT:
       {
-        DALI_LOG_ERROR( "EGL_BAD_CONTEXT: Invalid EGLContext object" );
+        DALI_LOG_ERROR( "EGL_BAD_CONTEXT: Invalid EGLContext object\n" );
         break;
       }
       case EGL_BAD_PARAMETER:
       {
-        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: Invalid target parameter or attribute in attrib_list" );
+        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: Invalid target parameter or attribute in attrib_list\n" );
         break;
       }
       case EGL_BAD_MATCH:
       {
-        DALI_LOG_ERROR( "EGL_BAD_MATCH: attrib_list does not match target" );
+        DALI_LOG_ERROR( "EGL_BAD_MATCH: attrib_list does not match target\n" );
         break;
       }
       case EGL_BAD_ACCESS:
       {
-        DALI_LOG_ERROR( "EGL_BAD_ACCESS: Previously bound off-screen, or EGLImage sibling error" );
+        DALI_LOG_ERROR( "EGL_BAD_ACCESS: Previously bound off-screen, or EGLImage sibling error\n" );
         break;
       }
       case EGL_BAD_ALLOC:
       {
-        DALI_LOG_ERROR( "EGL_BAD_ALLOC: Insufficient memory is available" );
+        DALI_LOG_ERROR( "EGL_BAD_ALLOC: Insufficient memory is available\n" );
         break;
       }
       default:
@@ -170,17 +170,17 @@ void EglImageExtensions::DestroyImageKHR(void* eglImageKHR)
     {
       case EGL_BAD_DISPLAY:
       {
-        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object" );
+        DALI_LOG_ERROR( "EGL_BAD_DISPLAY: Invalid EGLDisplay object\n" );
         break;
       }
       case EGL_BAD_PARAMETER:
       {
-        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: eglImage is not a valid EGLImageKHR object created with respect to EGLDisplay" );
+        DALI_LOG_ERROR( "EGL_BAD_PARAMETER: eglImage is not a valid EGLImageKHR object created with respect to EGLDisplay\n" );
         break;
       }
       case EGL_BAD_ACCESS:
       {
-        DALI_LOG_ERROR( "EGL_BAD_ACCESS: EGLImage sibling error" );
+        DALI_LOG_ERROR( "EGL_BAD_ACCESS: EGLImage sibling error\n" );
         break;
       }
       default:
index 5dac57b..57c8d43 100755 (executable)
@@ -131,7 +131,7 @@ void NativeImageSource::Initialize()
     }
     default:
     {
-      DALI_LOG_WARNING( "Wrong color depth." );
+      DALI_LOG_WARNING( "Wrong color depth.\n" );
       return;
     }
   }
@@ -170,7 +170,7 @@ NativeImageSource::~NativeImageSource()
   {
     if( tbm_surface_destroy( mTbmsurface ) != TBM_SURFACE_ERROR_NONE )
     {
-      DALI_LOG_ERROR( "Failed to destroy tbm_surface" );
+      DALI_LOG_ERROR( "Failed to destroy tbm_surface\n" );
     }
   }
 }
@@ -188,7 +188,7 @@ bool NativeImageSource::GetPixels(std::vector<unsigned char>& pixbuf, unsigned&
 
     if( tbm_surface_map( mTbmsurface, TBM_SURF_OPTION_READ, &surface_info) != TBM_SURFACE_ERROR_NONE )
     {
-      DALI_LOG_ERROR( "Fail to map tbm_surface" );
+      DALI_LOG_ERROR( "Fail to map tbm_surface\n" );
 
       width = 0;
       height = 0;
@@ -251,7 +251,7 @@ bool NativeImageSource::GetPixels(std::vector<unsigned char>& pixbuf, unsigned&
       }
       default:
       {
-        DALI_LOG_WARNING( "Tbm surface has unsupported pixel format." );
+        DALI_LOG_WARNING( "Tbm surface has unsupported pixel format.\n" );
 
         pixbuf.resize( 0 );
         width = 0;
@@ -263,13 +263,13 @@ bool NativeImageSource::GetPixels(std::vector<unsigned char>& pixbuf, unsigned&
 
     if( tbm_surface_unmap( mTbmsurface ) != TBM_SURFACE_ERROR_NONE )
     {
-      DALI_LOG_ERROR( "Fail to unmap tbm_surface" );
+      DALI_LOG_ERROR( "Fail to unmap tbm_surface\n" );
     }
 
     return true;
   }
 
-  DALI_LOG_WARNING( "TBM surface does not exist." );
+  DALI_LOG_WARNING( "TBM surface does not exist.\n" );
 
   width = 0;
   height = 0;
@@ -296,7 +296,7 @@ void NativeImageSource::SetSource( Any source )
   {
     if( tbm_surface_destroy( mTbmsurface ) != TBM_SURFACE_ERROR_NONE )
     {
-      DALI_LOG_ERROR( "Failed to destroy tbm_surface" );
+      DALI_LOG_ERROR( "Failed to destroy tbm_surface\n" );
     }
 
     mTbmsurface = NULL;
index b21e518..4957f64 100644 (file)
@@ -388,7 +388,7 @@ void TiltSensor::Update(sensor_event_s *event)
   }
   else
   {
-    DALI_LOG_ERROR("Invalid sensor type");
+    DALI_LOG_ERROR("Invalid sensor type\n");
     return;
   }
 
index 961c66a..d438054 100644 (file)
@@ -45,7 +45,7 @@ Dali::TtsPlayer TtsPlayer::New(Dali::TtsPlayer::Mode mode)
 TtsPlayer::TtsPlayer(Dali::TtsPlayer::Mode mode)
 : mStateChangedSignal()
 {
-  DALI_LOG_ERROR("TTS is not implemented in UBUNTU profile.");
+  DALI_LOG_ERROR("TTS is not implemented in UBUNTU profile.\n");
 }
 
 TtsPlayer::~TtsPlayer()
index 4271a38..2d3b106 100644 (file)
@@ -58,7 +58,7 @@ void OutputGeometryCallback( void *data,
   CompositorOutput* output = static_cast< CompositorOutput* >( data );
   output->SetMonitorDimensions( physical_width, physical_height );
 
-  DALI_LOG_INFO( gLogFilter, Debug::General, "Monitor width: %d mm, height: %d mm",physical_width, physical_height  );
+  DALI_LOG_INFO( gLogFilter, Debug::General, "Monitor width: %d mm, height: %d mm\n",physical_width, physical_height  );
 }
 
 void OutputModeCallback( void *data,
@@ -74,7 +74,7 @@ void OutputModeCallback( void *data,
     CompositorOutput* output = static_cast< CompositorOutput* >( data );
     output->SetMonitorResolution( width, height );
 
-    DALI_LOG_INFO( gLogFilter, Debug::General, "Monitor refresh rate: %f Hz, resolution: %d x %d", static_cast<float>(refresh)/ 1000.f, width, height );
+    DALI_LOG_INFO( gLogFilter, Debug::General, "Monitor refresh rate: %f Hz, resolution: %d x %d\n", static_cast<float>(refresh)/ 1000.f, width, height );
   }
 }
 
@@ -160,7 +160,7 @@ void CompositorOutput::CallbacksDone()
   gDpiHorizontal =  (static_cast<float>( mXresolution) / mMonitorWidth) + 0.5f;
   gDpiVertical =  (static_cast<float>( mYresolution )/ mMonitorHeight) +0.5f;
 
-  DALI_LOG_INFO( gLogFilter, Debug::General, "Monitor DPI %d x %d", gDpiHorizontal, gDpiVertical );
+  DALI_LOG_INFO( gLogFilter, Debug::General, "Monitor DPI %d x %d\n", gDpiHorizontal, gDpiVertical );
 }
 
 
index 0efb9d1..34c4b43 100644 (file)
@@ -226,7 +226,7 @@ void Seat::KeyboardKeymap( unsigned int format, int fd, unsigned int size )
 
   if( !mXkbData.mContext )
   {
-    DALI_LOG_ERROR("xkb_context_new failed");
+    DALI_LOG_ERROR("xkb_context_new failed\n");
     close(fd);
     return;
   }
@@ -236,7 +236,7 @@ void Seat::KeyboardKeymap( unsigned int format, int fd, unsigned int size )
 
   if( format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1 )
   {
-    DALI_LOG_ERROR("expected WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1");
+    DALI_LOG_ERROR("expected WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1\n");
     close(fd);
     return;
   }
@@ -245,7 +245,7 @@ void Seat::KeyboardKeymap( unsigned int format, int fd, unsigned int size )
   char* map =  static_cast<char*> (mmap( NULL, size, PROT_READ, MAP_SHARED, fd, 0));
   if( map == MAP_FAILED)
   {
-    DALI_LOG_ERROR("mmap xkb failed");
+    DALI_LOG_ERROR("mmap xkb failed\n");
     close(fd);
     return;
   }
@@ -257,7 +257,7 @@ void Seat::KeyboardKeymap( unsigned int format, int fd, unsigned int size )
 
   if (! mXkbData.mKeymap )
   {
-    DALI_LOG_ERROR(" xkb_map_new_from_string failed");
+    DALI_LOG_ERROR(" xkb_map_new_from_string failed\n");
     return;
   }
 
index db22b2f..ad95ac5 100644 (file)
@@ -143,7 +143,7 @@ Dali::ImfManager ImfManager::Get()
   }
   else
   {
-    DALI_LOG_ERROR("Failed to get native window handle");
+    DALI_LOG_ERROR("Failed to get native window handle\n");
   }
   return manager;
 }
index 6df8678..f8323ea 100644 (file)
@@ -84,7 +84,7 @@ void RenderSurface::InitializeEgl( EglInterface& egl )
 
   if (!eglImpl.InitializeGles(static_cast<EGLNativeDisplayType>( mWaylandManager->mDisplay )))
   {
-    DALI_LOG_ERROR("Failed to initialize GLES.");
+    DALI_LOG_ERROR("Failed to initialize GLES.\n");
   }
 
   eglImpl.ChooseConfig( true, mColorDepth );
index 433980c..a03807e 100644 (file)
@@ -212,7 +212,7 @@ void WaylandManager::ReadAndDispatchEvents()
   }
   else
   {
-    DALI_LOG_ERROR("wl_display_read_events error");
+    DALI_LOG_ERROR("wl_display_read_events error\n");
   }
 
 }
index 6ca9f9e..b917458 100644 (file)
@@ -86,7 +86,7 @@ bool DisplayConnection::InitializeEgl(EglInterface& egl)
 
   if (!eglImpl.InitializeGles(reinterpret_cast<EGLNativeDisplayType>(mDisplay)))
   {
-    DALI_LOG_ERROR("Failed to initialize GLES.");
+    DALI_LOG_ERROR("Failed to initialize GLES.\n");
     return false;
   }
 
index f5f08b8..a611d8e 100644 (file)
@@ -417,7 +417,7 @@ struct EventHandler::Impl
 #ifdef DALI_ELDBUS_AVAILABLE
 
       // Initialize ElDBus.
-      DALI_LOG_INFO( gImfLogging, Debug::General, "Starting DBus Initialization" );
+      DALI_LOG_INFO( gImfLogging, Debug::General, "Starting DBus Initialization\n" );
       eldbus_init();
 
       mSessionConnection = eldbus_connection_get( ELDBUS_CONNECTION_TYPE_SESSION );
@@ -428,7 +428,7 @@ struct EventHandler::Impl
       // Pass in handler in the cb_data field so we can access the accessibility adaptor within the callback.
       eldbus_proxy_call( elDBusManager, A11Y_GET_ADDRESS, EcoreElDBusInitialisation, handler, -1, "" );
 
-      DALI_LOG_INFO( gImfLogging, Debug::General, "Finished DBus Initialization" );
+      DALI_LOG_INFO( gImfLogging, Debug::General, "Finished DBus Initialization\n" );
 
 #endif // DALI_ELDBUS_AVAILABLE
     }
index 5aa868f..57ffb35 100644 (file)
@@ -166,7 +166,7 @@ Dali::ImfManager ImfManager::Get()
       }
       else
       {
-        DALI_LOG_ERROR("Failed to get native window handle");
+        DALI_LOG_ERROR("Failed to get native window handle\n");
       }
     }
   }
index c5fd340..ef0007e 100755 (executable)
@@ -166,7 +166,7 @@ bool NativeImageSource::GetPixels(std::vector<unsigned char>& pixbuf, unsigned&
   DALI_ASSERT_DEBUG(pXImage && "XImage (from pixmap) could not be retrieved from the server");
   if(!pXImage)
   {
-    DALI_LOG_ERROR("Could not retrieve Ximage.");
+    DALI_LOG_ERROR("Could not retrieve Ximage.\n");
   }
   else
   {
@@ -229,7 +229,7 @@ bool NativeImageSource::GetPixels(std::vector<unsigned char>& pixbuf, unsigned&
         }
         else
         {
-          DALI_LOG_ERROR("XImage has null data pointer.");
+          DALI_LOG_ERROR("XImage has null data pointer.\n");
         }
         break;
       }
@@ -242,13 +242,13 @@ bool NativeImageSource::GetPixels(std::vector<unsigned char>& pixbuf, unsigned&
       }
       default:
       {
-        DALI_LOG_WARNING("Pixmap has unsupported bit-depth for getting pixels: %u", pXImage->depth);
+        DALI_LOG_WARNING("Pixmap has unsupported bit-depth for getting pixels: %u\n", pXImage->depth);
       }
     }
   }
   if(!success)
   {
-    DALI_LOG_ERROR("Failed to get pixels from NativeImageSource.");
+    DALI_LOG_ERROR("Failed to get pixels from NativeImageSource.\n");
     pixbuf.resize(0);
     width = 0;
     height = 0;
index 9441488..6a5ee4b 100644 (file)
@@ -119,12 +119,12 @@ void ValidateScalingParameters( const unsigned int inputWidth,
 
   if( desiredWidth == 0u || desiredHeight == 0u )
   {
-    DALI_LOG_INFO( gImageOpsLogFilter, Dali::Integration::Log::Verbose, "Downscaling to a zero-area target is pointless." );
+    DALI_LOG_INFO( gImageOpsLogFilter, Dali::Integration::Log::Verbose, "Downscaling to a zero-area target is pointless.\n" );
   }
 
   if( inputWidth == 0u || inputHeight == 0u )
   {
-    DALI_LOG_INFO( gImageOpsLogFilter, Dali::Integration::Log::Verbose, "Zero area images cannot be scaled" );
+    DALI_LOG_INFO( gImageOpsLogFilter, Dali::Integration::Log::Verbose, "Zero area images cannot be scaled\n" );
   }
 }
 
index d1076e1..42c2f55 100644 (file)
@@ -130,7 +130,7 @@ bool DecodeRle( const unsigned char* input,
 
     if( (runLength + outputIndex) > decodedSize)
     {
-      DALI_LOG_ERROR( "corrupted RLE data" );
+      DALI_LOG_ERROR( "corrupted RLE data\n" );
       // corrupted
       return false;
     }
@@ -140,7 +140,7 @@ bool DecodeRle( const unsigned char* input,
   }
   if( outputIndex != decodedSize)
   {
-    DALI_LOG_ERROR(" RLE data size missmatch");
+    DALI_LOG_ERROR(" RLE data size missmatch\n");
     return false;
   }
 
index b28b1b1..a7e5467 100644 (file)
@@ -212,7 +212,7 @@ bool LoadIcoHeaderHelper( FILE* fp,
 
   if(fread(&map[0], 1, fsize, fp) != fsize)
   {
-    DALI_LOG_WARNING("image file read opeation error!");
+    DALI_LOG_WARNING("image file read opeation error!\n");
     return false;
   }
 
@@ -422,7 +422,7 @@ bool LoadBitmapFromIco( const ResourceLoadingClient& client, const ImageLoader::
   }
   if (diff_size)
   {
-    DALI_LOG_WARNING("Broken ICO file!");
+    DALI_LOG_WARNING("Broken ICO file!\n");
   }
 
   // Set up the surface as soon as we have the width and height, so we have a black image if there are any further errors.
index 6613fff..5f130c7 100755 (executable)
@@ -255,7 +255,7 @@ bool LoadBitmapFromJpeg( const ResourceLoadingClient& client, const ImageLoader:
   // Pull the compressed JPEG image bytes out of a file and into memory:
   if( fread( jpegBufferPtr, 1, jpegBufferSize, fp ) != jpegBufferSize )
   {
-    DALI_LOG_WARNING("Error on image file read.");
+    DALI_LOG_WARNING("Error on image file read.\n");
     return false;
   }
 
@@ -297,7 +297,7 @@ bool LoadBitmapFromJpeg( const ResourceLoadingClient& client, const ImageLoader:
 
   if(preXformImageWidth == 0 || preXformImageHeight == 0)
   {
-    DALI_LOG_WARNING("Invalid Image!");
+    DALI_LOG_WARNING("Invalid Image!\n");
     return false;
   }
 
@@ -552,7 +552,7 @@ bool EncodeToJpeg( const unsigned char* const pixelBuffer, Vector< unsigned char
     }
     default:
     {
-      DALI_LOG_ERROR( "Unsupported pixel format for encoding to JPEG." );
+      DALI_LOG_ERROR( "Unsupported pixel format for encoding to JPEG.\n" );
       return false;
     }
   }
@@ -653,7 +653,7 @@ JPGFORM_CODE ConvertExifOrientation(ExifData* exifData)
       default:
       {
         // Try to keep loading the file, but let app developer know there was something fishy:
-        DALI_LOG_WARNING( "Incorrect/Unknown Orientation setting found in EXIF header of JPEG image (%x). Orientation setting will be ignored.", entry );
+        DALI_LOG_WARNING( "Incorrect/Unknown Orientation setting found in EXIF header of JPEG image (%x). Orientation setting will be ignored.\n", entry );
         break;
       }
     }
@@ -688,7 +688,7 @@ bool TransformSize( int requiredWidth, int requiredHeight,
   tjscalingfactor* factors = tjGetScalingFactors( &numFactors );
   if( factors == NULL )
   {
-    DALI_LOG_WARNING("TurboJpeg tjGetScalingFactors error!");
+    DALI_LOG_WARNING("TurboJpeg tjGetScalingFactors error!\n");
     success = false;
   }
   else
index 077d40c..6bc66d6 100644 (file)
@@ -373,12 +373,12 @@ namespace
       }
       else
       {
-        DALI_LOG_ERROR("PNG buffer for write to memory was passed from libpng as null.");
+        DALI_LOG_ERROR("PNG buffer for write to memory was passed from libpng as null.\n");
       }
     }
     catch(...)
     {
-      DALI_LOG_ERROR("C++ Exception caught");
+      DALI_LOG_ERROR("C++ Exception caught\n");
     }
   }
 
@@ -432,7 +432,7 @@ bool EncodeToPng( const unsigned char* const pixelBuffer, Vector<unsigned char>&
     }
     default:
     {
-      DALI_LOG_ERROR( "Unsupported pixel format for encoding to PNG." );
+      DALI_LOG_ERROR( "Unsupported pixel format for encoding to PNG.\n" );
       return false;
     }
   }
index 793ba93..f042ce7 100755 (executable)
@@ -82,7 +82,7 @@ int extractMultiByteInteger(unsigned int *data, void *map, size_t length, size_t
 
     if ((buf & 0x80) == 0)
     {
-      DALI_LOG_INFO(gLogFilter, Debug::Verbose, "position: %d, readBufCount: %d", *position, readBufCount);
+      DALI_LOG_INFO(gLogFilter, Debug::Verbose, "position: %d, readBufCount: %d\n", *position, readBufCount);
       break;
     }
   }
@@ -149,7 +149,7 @@ bool LoadBitmapFromWbmp( const ResourceLoadingClient& client, const ImageLoader:
 
   if(fread(&map[0], 1, fsize, fp) != fsize)
   {
-    DALI_LOG_WARNING("image file read opeation error!");
+    DALI_LOG_WARNING("image file read opeation error!\n");
     return false;
   }
 
@@ -263,13 +263,13 @@ bool LoadWbmpHeader( const ImageLoader::Input& input, unsigned int& width, unsig
   map.Resize(headerSize);
   if(fread(&map[0], 1, headerSize, fp) != headerSize)
   {
-    DALI_LOG_WARNING("image file read opeation error!");
+    DALI_LOG_WARNING("image file read opeation error!\n");
     return false;
   }
 
   if (extractMultiByteInteger(&type, &map[0], headerSize, &position) < 0)
   {
-    DALI_LOG_ERROR("Error: unable to read type!");
+    DALI_LOG_ERROR("Error: unable to read type!\n");
     return false;
   }
   position++; /* skipping one byte */
index 04a7b93..dbab073 100644 (file)
@@ -311,14 +311,14 @@ void ResourceThreadBase::UninstallLogging()
 void ResourceThreadBase::Download(const Integration::ResourceRequest& request)
 {
   DALI_LOG_TRACE_METHOD(mLogFilter);
-  DALI_LOG_WARNING("Resource Downloading from a remote server not supported for this type.");
+  DALI_LOG_WARNING("Resource Downloading from a remote server not supported for this type.\n");
   ///! If you need this for a subclassed thread, look to ResourceThreadImage::Download() for an example implementation.
 }
 
 void ResourceThreadBase::Decode(const Integration::ResourceRequest& request)
 {
   DALI_LOG_TRACE_METHOD(mLogFilter);
-  DALI_LOG_WARNING("Resource Decoding from a memory buffer not supported for this type.");
+  DALI_LOG_WARNING("Resource Decoding from a memory buffer not supported for this type.\n");
   ///! If you need this for a subclassed thread, look to ResourceThreadImage::Decode() for an example implementation.
 }
 
index 12528ae..bbcabaf 100644 (file)
@@ -56,7 +56,7 @@ static void MediaPacketVideoDecodedCb( media_packet_h packet, void* user_data )
 
   if( player == NULL )
   {
-    DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data." );
+    DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data.\n" );
     return;
   }
 
@@ -67,19 +67,19 @@ static void MediaPacketVideoDecodedCb( media_packet_h packet, void* user_data )
 static void EmitPlaybackFinishedSignal( void* user_data )
 {
   TizenVideoPlayer* player = static_cast< TizenVideoPlayer* >( user_data );
-  DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.0" );
+  DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.\n" );
 
   if( player == NULL )
   {
-    DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data." );
+    DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data.\n" );
     return;
   }
 
-  DALI_LOG_ERROR( "EmitPlaybackFinishedSignal." );
+  DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.\n" );
 
   if( !player->mFinishedSignal.Empty() )
   {
-    DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.3" );
+    DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.3\n" );
     player->mFinishedSignal.Emit();
   }
 
@@ -302,7 +302,7 @@ void TizenVideoPlayer::SetRenderingTarget( Any target )
   }
   else
   {
-    DALI_LOG_ERROR( "Video rendering target is unknown" );
+    DALI_LOG_ERROR( "Video rendering target is unknown\n" );
   }
 }