[vlc-commits] freetype: use %p format specifier for pointers
Rémi Denis-Courmont
git at videolan.org
Tue Nov 20 21:34:18 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 20 22:28:16 2018 +0200| [712b002dbe9852b347767fa5e244888c1b229626] | committer: Rémi Denis-Courmont
freetype: use %p format specifier for pointers
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=712b002dbe9852b347767fa5e244888c1b229626
---
modules/text_renderer/freetype/platform_fonts.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/text_renderer/freetype/platform_fonts.c b/modules/text_renderer/freetype/platform_fonts.c
index 53c94d1dcc..0690a49f9f 100644
--- a/modules/text_renderer/freetype/platform_fonts.c
+++ b/modules/text_renderer/freetype/platform_fonts.c
@@ -393,8 +393,7 @@ void DumpFamily( filter_t *p_filter, const vlc_family_t *p_family,
for( int i = 0; p_family && i < i_max_families ; p_family = p_family->p_next, ++i )
{
- msg_Dbg( p_filter, "\t[0x%"PRIxPTR"] %s",
- ( uintptr_t ) p_family, p_family->psz_name );
+ msg_Dbg( p_filter, "\t[%p] %s", (void *)p_family, p_family->psz_name );
if( b_dump_fonts )
{
@@ -410,10 +409,8 @@ void DumpFamily( filter_t *p_filter, const vlc_family_t *p_family,
else if( p_font->b_bold && p_font->b_italic )
psz_style = "Bold Italic";
- msg_Dbg( p_filter, "\t\t[0x%"PRIxPTR"] (%s): %s - %d",
- ( uintptr_t ) p_font, psz_style,
- p_font->psz_fontfile, p_font->i_index );
-
+ msg_Dbg( p_filter, "\t\t[%p] (%s): %s - %d", (void *)p_font,
+ psz_style, p_font->psz_fontfile, p_font->i_index );
}
}
More information about the vlc-commits
mailing list