[vlc-commits] Do not add a newline at the end of the strings send to msg_*
Rémi Duraffort
git at videolan.org
Thu Apr 21 20:26:22 CEST 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Apr 21 20:22:09 2011 +0200| [1339e3572a7e8c643133a3261021b033e8e80fbf] | committer: Rémi Duraffort
Do not add a newline at the end of the strings send to msg_*
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1339e3572a7e8c643133a3261021b033e8e80fbf
---
modules/audio_output/alsa.c | 2 +-
modules/codec/avcodec/dxva2.c | 10 +++++-----
modules/gui/skins2/x11/x11_display.cpp | 2 +-
modules/video_filter/blend.c | 2 +-
src/misc/update.c | 2 +-
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index 58f9372..5ec9c54 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -422,7 +422,7 @@ static int Open (vlc_object_t *obj)
goto error;
}
if (p_aout->output.output.i_rate != old_rate)
- msg_Warn (p_aout, "resampling from %d Hz to %d Hz\n", old_rate,
+ msg_Warn (p_aout, "resampling from %d Hz to %d Hz", old_rate,
p_aout->output.output.i_rate);
/* Set period size. */
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 595f1d6..b1f2bf1 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -649,7 +649,7 @@ static int D3dCreateDeviceManager(vlc_va_dxva2_t *va)
TEXT("DXVA2CreateDirect3DDeviceManager9"));
if (!CreateDeviceManager9) {
- msg_Err(va->log, "cannot load function\n");
+ msg_Err(va->log, "cannot load function");
return VLC_EGENERIC;
}
msg_Dbg(va->log, "OurDirect3DCreateDeviceManager9 Success!");
@@ -693,7 +693,7 @@ static int DxCreateVideoService(vlc_va_dxva2_t *va)
TEXT("DXVA2CreateVideoService"));
if (!CreateVideoService) {
- msg_Err(va->log, "cannot load function\n");
+ msg_Err(va->log, "cannot load function");
return 4;
}
msg_Info(va->log, "DXVA2CreateVideoService Success!");
@@ -850,7 +850,7 @@ static int DxCreateVideoDecoder(vlc_va_dxva2_t *va,
DXVA2_VideoDecoderRenderTarget,
surface_list,
NULL))) {
- msg_Err(va->log, "IDirectXVideoAccelerationService_CreateSurface failed\n");
+ msg_Err(va->log, "IDirectXVideoAccelerationService_CreateSurface failed");
va->surface_count = 0;
return VLC_EGENERIC;
}
@@ -899,7 +899,7 @@ static int DxCreateVideoDecoder(vlc_va_dxva2_t *va,
NULL,
&cfg_count,
&cfg_list))) {
- msg_Err(va->log, "IDirectXVideoDecoderService_GetDecoderConfigurations failed\n");
+ msg_Err(va->log, "IDirectXVideoDecoderService_GetDecoderConfigurations failed");
return VLC_EGENERIC;
}
msg_Dbg(va->log, "we got %d decoder configurations", cfg_count);
@@ -944,7 +944,7 @@ static int DxCreateVideoDecoder(vlc_va_dxva2_t *va,
surface_list,
va->surface_count,
&decoder))) {
- msg_Err(va->log, "IDirectXVideoDecoderService_CreateVideoDecoder failed\n");
+ msg_Err(va->log, "IDirectXVideoDecoderService_CreateVideoDecoder failed");
return VLC_EGENERIC;
}
va->decoder = decoder;
diff --git a/modules/gui/skins2/x11/x11_display.cpp b/modules/gui/skins2/x11/x11_display.cpp
index 48e8f3e..dc42dd1 100644
--- a/modules/gui/skins2/x11/x11_display.cpp
+++ b/modules/gui/skins2/x11/x11_display.cpp
@@ -186,7 +186,7 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
break;
default:
- msg_Err( getIntf(), "unsupported depth: %d bpp\n", depth );
+ msg_Err( getIntf(), "unsupported depth: %d bpp", depth );
m_pDisplay = NULL;
break;
}
diff --git a/modules/video_filter/blend.c b/modules/video_filter/blend.c
index 192a6c2..aff38f4 100644
--- a/modules/video_filter/blend.c
+++ b/modules/video_filter/blend.c
@@ -234,7 +234,7 @@ static void Blend( filter_t *p_filter,
video_format_FixRgb( &p_filter->fmt_in.video );
#if 0
- msg_Dbg( p_filter, "chroma: %4.4s -> %4.4s\n",
+ msg_Dbg( p_filter, "chroma: %4.4s -> %4.4s",
(char *)&p_filter->fmt_in.video.i_chroma,
(char *)&p_filter->fmt_out.video.i_chroma );
#endif
diff --git a/src/misc/update.c b/src/misc/update.c
index 0c939a0..02adb3a 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -333,7 +333,7 @@ static bool GetUpdateFile( update_t *p_update )
else
{
free( p_hash );
- msg_Err( p_update->p_libvlc, "Key signature invalid !\n" );
+ msg_Err( p_update->p_libvlc, "Key signature invalid !" );
goto error;
}
}
More information about the vlc-commits
mailing list