Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1632781

[RFC PATCH 2/7] um: Use non_fatal() in check_coredump_limit

From Masami Hiramatsu <mhiramat@kernel.org>
Newsgroups linux.kernel
Subject [RFC PATCH 2/7] um: Use non_fatal() in check_coredump_limit
Date 2017-04-28 12:30 +0200
Message-ID <tBbjY-614-25@gated-at.bofh.it> (permalink)
References <tBbjX-614-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Use non_fatal() instead of printf in check_coredump_limit().

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
---
 arch/um/os-Linux/start_up.c |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index 22a358e..5052817 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -308,15 +308,17 @@ static void __init check_coredump_limit(void)
 		return;
 	}
 
-	printf("Core dump limits :\n\tsoft - ");
+	non_fatal("Core dump limits :\n\tsoft - ");
 	if (lim.rlim_cur == RLIM_INFINITY)
-		printf("NONE\n");
-	else printf("%lu\n", lim.rlim_cur);
+		non_fatal("NONE\n");
+	else
+		non_fatal("%lu\n", lim.rlim_cur);
 
-	printf("\thard - ");
+	non_fatal("\thard - ");
 	if (lim.rlim_max == RLIM_INFINITY)
-		printf("NONE\n");
-	else printf("%lu\n", lim.rlim_max);
+		non_fatal("NONE\n");
+	else
+		non_fatal("%lu\n", lim.rlim_max);
 }
 
 void __init os_early_checks(void)

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/7] um: Fix printf usage and support quiet option Masami Hiramatsu <mhiramat@kernel.org> - 2017-04-28 12:30 +0200
  [RFC PATCH 3/7] um: Make non_fatal non-static for other files Masami Hiramatsu <mhiramat@kernel.org> - 2017-04-28 12:30 +0200
  [RFC PATCH 2/7] um: Use non_fatal() in check_coredump_limit Masami Hiramatsu <mhiramat@kernel.org> - 2017-04-28 12:30 +0200
  [RFC PATCH 5/7] um: Print out fatal error in stderr Masami Hiramatsu <mhiramat@kernel.org> - 2017-04-28 12:30 +0200
    Re: [RFC PATCH 5/7] um: Print out fatal error in stderr Masami Hiramatsu <mhiramat@kernel.org> - 2017-04-29 13:30 +0200
  [RFC PATCH 1/7] um: Use printk instead of printf in make_uml_dir Masami Hiramatsu <mhiramat@kernel.org> - 2017-04-28 12:30 +0200
  [RFC PATCH 4/7] um: Use non_fatal() for non-fatal information/warning messages Masami Hiramatsu <mhiramat@kernel.org> - 2017-04-28 12:30 +0200

csiph-web