[netfilter-cvslog] r3959 - trunk/nfsim/kernelenv
rusty at netfilter.org
rusty at netfilter.org
Sun Jun 5 05:20:51 CEST 2005
Author: rusty at netfilter.org
Date: 2005-06-05 05:20:47 +0200 (Sun, 05 Jun 2005)
New Revision: 3959
Modified:
trunk/nfsim/kernelenv/proc_stuff.c
Log:
Errors should be LOG_UI, so they don't get printed when running (esp. 2.4) tests
Modified: trunk/nfsim/kernelenv/proc_stuff.c
===================================================================
--- trunk/nfsim/kernelenv/proc_stuff.c 2005-06-01 17:16:32 UTC (rev 3958)
+++ trunk/nfsim/kernelenv/proc_stuff.c 2005-06-05 03:20:47 UTC (rev 3959)
@@ -840,17 +840,17 @@
dir = find_proc_entry(name);
if (!dir) {
- nfsim_log(LOG_ALWAYS, "proc file not found: %s", name);
+ nfsim_log(LOG_UI, "proc file not found: %s", name);
return NULL;
}
if (S_ISDIR(dir->mode)) {
- nfsim_log(LOG_ALWAYS, "proc entry %s is a directory", name);
+ nfsim_log(LOG_UI, "proc entry %s is a directory", name);
return NULL;
}
if (mode == FMODE_WRITE && !(dir->mode & 0200)) {
- nfsim_log(LOG_ALWAYS, "proc entry %s not writable", name);
+ nfsim_log(LOG_UI, "proc entry %s not writable", name);
return NULL;
}
@@ -867,7 +867,7 @@
(*f)->f_pos = 0;
if (dir->proc_fops->open && dir->proc_fops->open(inode, *f) < 0) {
- nfsim_log(LOG_ALWAYS, "proc entry %s open failed %i!",
+ nfsim_log(LOG_UI, "proc entry %s open failed %i!",
name, ret);
talloc_free(*f);
return NULL;
@@ -896,7 +896,7 @@
ret = dir->proc_fops->read(f, buf, sizeof(buf)-1, &f->f_pos);
nfsim_proc_close(dir, f);
if (ret < 0) {
- nfsim_log(LOG_ALWAYS, "proc entry %s read failed %i!",
+ nfsim_log(LOG_UI, "proc entry %s read failed %i!",
name, ret);
return false;
}
@@ -926,7 +926,7 @@
talloc_free(str);
if (ret < 0) {
- nfsim_log(LOG_ALWAYS, "proc entry %s write failed %i!",
+ nfsim_log(LOG_UI, "proc entry %s write failed %i!",
name, ret);
return false;
}
More information about the netfilter-cvslog
mailing list