Skip to content

Commit

Permalink
NSThread: Add warning when truncating thread name
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Sep 2, 2024
1 parent 7474bd8 commit 538f0ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/NSThread.m
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,7 @@ - (void) _setName: (NSString *)aName
*/
if (i > 15)
{
NSWarnLog(@"Truncating thread name '%s' to 15 characters due to platform limitations", buf);
i = 15;
}
else
Expand Down

0 comments on commit 538f0ed

Please sign in to comment.