[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9065: when we decide not to mmap, because the file is empty or isn (tor/trunk/src/common)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9065: when we decide not to mmap, because the file is empty or isn (tor/trunk/src/common)
- From: arma@xxxxxxxx
- Date: Sun, 10 Dec 2006 23:21:11 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 10 Dec 2006 23:21:18 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: arma
Date: 2006-12-10 23:21:10 -0500 (Sun, 10 Dec 2006)
New Revision: 9065
Modified:
tor/trunk/src/common/compat.c
Log:
when we decide not to mmap, because the file is empty or isn't
there at all, don't yell so loud.
Modified: tor/trunk/src/common/compat.c
===================================================================
--- tor/trunk/src/common/compat.c 2006-12-10 23:41:07 UTC (rev 9064)
+++ tor/trunk/src/common/compat.c 2006-12-11 04:21:10 UTC (rev 9065)
@@ -131,7 +131,7 @@
fd = open(filename, O_RDONLY, 0);
if (fd<0) {
- log_warn(LD_FS,"Could not open \"%s\" for mmap().",filename);
+ log_info(LD_FS,"Could not open \"%s\" for mmap().",filename);
return NULL;
}
@@ -144,7 +144,7 @@
if (!size) {
/* Zero-length file. If we call mmap on it, it will succeed but
* return NULL, and bad things will happen. So just fail. */
- log_notice(LD_FS,"File \"%s\" is empty. Ignoring.",filename);
+ log_info(LD_FS,"File \"%s\" is empty. Ignoring.",filename);
return NULL;
}