aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-27 23:48:17 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-27 23:48:17 -0400
commit234dfb0c65bb4239d5fc497df10d1759c3577af2 (patch)
treee534c69ea8888138053026e5a8444186b1700ee8 /src/common
parent9efd970dd9e04177832312d6d611a855ec4e455f (diff)
downloadtor-234dfb0c65bb4239d5fc497df10d1759c3577af2.tar
tor-234dfb0c65bb4239d5fc497df10d1759c3577af2.tar.gz
Better log message when writing a CR in text mode on windows
Help to diagnose #11233
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index a0adb15ff..79e28601c 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2002,7 +2002,8 @@ write_str_to_file(const char *fname, const char *str, int bin)
#ifdef _WIN32
if (!bin && strchr(str, '\r')) {
log_warn(LD_BUG,
- "We're writing a text string that already contains a CR.");
+ "We're writing a text string that already contains a CR to %s",
+ escaped(fname));
}
#endif
return write_bytes_to_file(fname, str, strlen(str), bin);