From d4fd12e8cc10fd984a6fe9a62fc3d39ebf44524f Mon Sep 17 00:00:00 2001 From: Steve Nygard Date: Sun, 15 Jul 2012 22:33:34 -0600 Subject: [PATCH] Use __PRETTY_FUNCTION__ in log message. --- Source/CDType.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CDType.m b/Source/CDType.m index 125d96e0..0a23328d 100644 --- a/Source/CDType.m +++ b/Source/CDType.m @@ -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]);