summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/port-linux.c')
-rw-r--r--openbsd-compat/port-linux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
index cda751dea..89b9a7340 100644
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -1,4 +1,4 @@
1/* $Id: port-linux.c,v 1.7 2009/12/08 02:39:48 dtucker Exp $ */ 1/* $Id: port-linux.c,v 1.8 2010/03/01 04:52:50 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> 4 * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
@@ -229,11 +229,11 @@ oom_adjust_setup(void)
229 debug3("%s", __func__); 229 debug3("%s", __func__);
230 if ((fp = fopen(OOM_ADJ_PATH, "r+")) != NULL) { 230 if ((fp = fopen(OOM_ADJ_PATH, "r+")) != NULL) {
231 if (fscanf(fp, "%d", &oom_adj_save) != 1) 231 if (fscanf(fp, "%d", &oom_adj_save) != 1)
232 logit("error reading %s: %s", OOM_ADJ_PATH, strerror(errno)); 232 verbose("error reading %s: %s", OOM_ADJ_PATH, strerror(errno));
233 else { 233 else {
234 rewind(fp); 234 rewind(fp);
235 if (fprintf(fp, "%d\n", OOM_ADJ_NOKILL) <= 0) 235 if (fprintf(fp, "%d\n", OOM_ADJ_NOKILL) <= 0)
236 logit("error writing %s: %s", 236 verbose("error writing %s: %s",
237 OOM_ADJ_PATH, strerror(errno)); 237 OOM_ADJ_PATH, strerror(errno));
238 else 238 else
239 verbose("Set %s from %d to %d", 239 verbose("Set %s from %d to %d",
@@ -254,7 +254,7 @@ oom_adjust_restore(void)
254 return; 254 return;
255 255
256 if (fprintf(fp, "%d\n", oom_adj_save) <= 0) 256 if (fprintf(fp, "%d\n", oom_adj_save) <= 0)
257 logit("error writing %s: %s", OOM_ADJ_PATH, strerror(errno)); 257 verbose("error writing %s: %s", OOM_ADJ_PATH, strerror(errno));
258 else 258 else
259 verbose("Set %s to %d", OOM_ADJ_PATH, oom_adj_save); 259 verbose("Set %s to %d", OOM_ADJ_PATH, oom_adj_save);
260 260