From: Thomas Veerman Date: Thu, 19 Jan 2012 17:06:14 +0000 (+0000) Subject: Don't print events that happen often X-Git-Tag: v3.2.0~110 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/mult.png?a=commitdiff_plain;h=e894c9e1b50f02ea2adce5d2d1852b628bb0c876;p=minix.git Don't print events that happen often --- diff --git a/servers/avfs/exec.c b/servers/avfs/exec.c index 5b0ac598c..7c00d3f32 100644 --- a/servers/avfs/exec.c +++ b/servers/avfs/exec.c @@ -146,7 +146,6 @@ PUBLIC int pm_exec(int proc_e, char *path, vir_bytes path_len, char *frame, /* Fetch the stack from the user before destroying the old core image. */ if (frame_len > ARG_MAX) { - printf("VFS: pm_exec: stack too big\n"); r = ENOMEM; /* stack too big */ goto pm_execfinal; } @@ -208,8 +207,8 @@ PUBLIC int pm_exec(int proc_e, char *path, vir_bytes path_len, char *frame, /* Get fresh copy of the file name. */ if ((r = fetch_name(path, path_len, 0, fullpath)) != OK) printf("VFS pm_exec: 2nd fetch_name failed\n"); - else if ((r = patch_stack(vp, mbuf, &frame_len, fullpath)) != OK) - printf("VFS pm_exec: patch_stack failed\n"); + else + r = patch_stack(vp, mbuf, &frame_len, fullpath); unlock_vnode(vp); put_vnode(vp);