Changes for 64bit clean printf format strings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-07-03 06:46:41 +00:00
parent 8082fb58c1
commit 022d588467
32 changed files with 223 additions and 168 deletions

View file

@ -345,8 +345,8 @@ NSLogv(NSString* format, va_list args)
{
if (GSPrivateDefaultsFlag(GSLogThread) == YES)
{
prefix = [NSString stringWithFormat: @"[thread:%x] ",
GSCurrentThread()];
prefix = [NSString stringWithFormat: @"[thread:%"PRIxPTR"] ",
(NSUInteger)GSCurrentThread()];
}
else
{
@ -359,11 +359,11 @@ NSLogv(NSString* format, va_list args)
if (GSPrivateDefaultsFlag(GSLogThread) == YES)
{
prefix = [NSString
stringWithFormat: @"%@ %@[%d,%x] ",
stringWithFormat: @"%@ %@[%d,%"PRIxPTR"x] ",
[[NSCalendarDate calendarDate]
descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F"],
[[NSProcessInfo processInfo] processName],
pid, GSCurrentThread()];
pid, (NSUInteger)GSCurrentThread()];
}
else
{