ref: 24be60b5f160d9aad7366bf3043ec8069664df0b
parent: e9a154e70015e602d695d65a588ecb38f5bb38cc
author: Werner Lemberg <[email protected]>
date: Sun Jan 1 03:20:38 EST 2017
*/*: Use hex numbers for errors in tracing messages.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2016-12-31 Werner Lemberg <[email protected]>
+ */*: Use hex numbers for errors in tracing messages.
+
+2016-12-31 Werner Lemberg <[email protected]>
+
[truetype] Check axis count in HVAR table.
Reported as
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -462,7 +462,8 @@
Exit:
- FT_TRACE4(( "FT_New_GlyphSlot: Return %d\n", error ));
+ FT_TRACE4(( "FT_New_GlyphSlot: Return 0x%x\n", error ));
+
return error;
}
@@ -2031,13 +2032,15 @@
{
FT_TRACE3(( "Skip rule %d: darwin vfs resource fork"
" is already checked and"
- " no font is found\n", i ));
+ " no font is found\n",
+ i ));
continue;
}
if ( errors[i] )
{
- FT_TRACE3(( "Error[%d] has occurred in rule %d\n", errors[i], i ));
+ FT_TRACE3(( "Error 0x%x has occurred in rule %d\n",
+ errors[i], i ));
continue;
}
@@ -2448,7 +2451,7 @@
}
#endif
- FT_TRACE4(( "FT_Open_Face: Return %d\n", error ));
+ FT_TRACE4(( "FT_Open_Face: Return 0x%x\n", error ));
return error;
}
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -287,7 +287,7 @@
return FT_Err_Ok;
Exit:
- FT_TRACE5(( "FT_Outline_Decompose: Error %d\n", error ));
+ FT_TRACE5(( "FT_Outline_Decompose: Error 0x%x\n", error ));
return error;
Invalid_Outline:
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1613,7 +1613,7 @@
return 0;
Exit:
- FT_TRACE5(( "FT_Outline_Decompose: Error %d\n", error ));
+ FT_TRACE5(( "FT_Outline_Decompose: Error 0x%x\n", error ));
return error;
Invalid_Outline:
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -561,7 +561,7 @@
error = fnt_font_load( face->font, stream );
if ( error )
{
- FT_TRACE2(( "font #%lu load error %d\n",
+ FT_TRACE2(( "font #%lu load error 0x%x\n",
dir_entry2.name, error ));
goto Fail;
}