Avoid double-parens in log_fn() messages on clang.

On clang (and elsewhere?) __PRETTY_FUNCTION__ includes parenthesized
argument lists.  This is clever, but it makes our old "%s(): " format
look funny.

This is a fix on 0957ffeb, aka svn:r288.  Fixes bug 15269.
This commit is contained in:
Nick Mathewson
2015-03-14 14:12:03 -04:00
parent 4247ce99e5
commit 7bed9dc73a
2 changed files with 18 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
o Minor bugfixes (logs):
- When building Tor under Clang, do not include an extra set of
parentheses in log messages that include function names.
Fixes bug 15053; bugfix on every released version of Tor when
compiled with recent enough Clang.