Skip to content

Commit

Permalink
Use __PRETTY_FUNCTION__ in log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
nygard committed Jul 16, 2012
1 parent 33c1478 commit d4fd12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CDType.m
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ - (id)copyWithZone:(NSZone *)zone;
NSError *error = nil;
CDType *copiedType = [parser parseType:&error];
if (copiedType == nil)
NSLog(@"Warning: Parsing type in -[CDType copyWithZone:] failed, %@", str);
NSLog(@"Warning: Parsing type in %s failed, %@", __PRETTY_FUNCTION__, str);

NSParameterAssert([str isEqualToString:copiedType.typeString]);

Expand Down

0 comments on commit d4fd12e

Please sign in to comment.