diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-07-24 20:30:18 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-07-24 20:30:18 +0000 |
commit | c980db4e60639ce7ae9443195a4f9b2b4b449351 (patch) | |
tree | a75513a764a370721b3e04faa084f100ac559de0 /Foundation/GTMStackTrace.m | |
parent | ba6b64fef26412fd664e22862d10d636194f8c75 (diff) |
[Author: dmaclach]
Clean up all of our format string issues amongst some other fun stuff.
R=thomasvl
DELTA=167 (90 added, 8 deleted, 69 changed)
Diffstat (limited to 'Foundation/GTMStackTrace.m')
-rw-r--r-- | Foundation/GTMStackTrace.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Foundation/GTMStackTrace.m b/Foundation/GTMStackTrace.m index 8b482e6..db844b1 100644 --- a/Foundation/GTMStackTrace.m +++ b/Foundation/GTMStackTrace.m @@ -172,8 +172,8 @@ static NSString *GTMStackTraceFromAddressDescriptors(struct GTMAddressDescriptor fileName = @"??"; } if (descs[i].class_name) { - [trace appendFormat:@"#%-2u %-35s %0*lX %s[%s %s]", - i, + [trace appendFormat:@"#%-2lu %-35s %0*lX %s[%s %s]", + (unsigned long)i, [fileName UTF8String], // sizeof(void*) * 2 is the length of the hex address (32 vs 64) and + 2 // for the 0x prefix @@ -183,8 +183,8 @@ static NSString *GTMStackTraceFromAddressDescriptors(struct GTMAddressDescriptor descs[i].class_name, (descs[i].symbol ? descs[i].symbol : "??")]; } else { - [trace appendFormat:@"#%-2u %-35s %0*lX %s()", - i, + [trace appendFormat:@"#%-2lu %-35s %0*lX %s()", + (unsigned long)i, [fileName UTF8String], // sizeof(void*) * 2 is the length of the hex address (32 vs 64) and + 2 // for the 0x prefix |