*/*: Use hex numbers for errors in tracing messages.

This commit is contained in:
Werner Lemberg 2017-01-01 08:20:38 +01:00
parent e9a154e700
commit 24be60b5f1
5 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2016-12-31 Werner Lemberg <wl@gnu.org>
*/*: Use hex numbers for errors in tracing messages.
2016-12-31 Werner Lemberg <wl@gnu.org>
[truetype] Check axis count in HVAR table.

View File

@ -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;
}

View File

@ -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:

View File

@ -1613,7 +1613,7 @@ typedef ptrdiff_t FT_PtrDist;
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:

View File

@ -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;
}