From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752836AbdEHGQT (ORCPT ); Mon, 8 May 2017 02:16:19 -0400 Received: from mail.kernel.org ([198.145.29.136]:44848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752012AbdEHGQS (ORCPT ); Mon, 8 May 2017 02:16:18 -0400 From: Masami Hiramatsu To: Jeff Dike , Richard Weinberger Cc: Masami Hiramatsu , user-mode-linux-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [RFC PATCH v2 0/6] um: Output messages to stderr and support quiet option Date: Mon, 8 May 2017 15:15:21 +0900 Message-Id: <149422411127.11101.13017249012576512464.stgit@devbox> X-Mailer: git-send-email 2.9.3 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Here is version 2 of um-quiet series. This series fixes some boot time printf output to stderr by adding os_info() and os_warn(). The information-level messages via os_info() are suppressed when "quiet" kernel option is specified. Also the last one allows user to pass "console=" option to kernel. Note that the output of --help and --version are still sent to stdout since they are intentionally shown by the user. Changes from v1: - Introduce os_info() and os_warn() to replace most of printf() instead of reusing non_fatal(). - Replace fprintf(stderr, ...) with os_warn() for error messages. Thank you, --- Masami Hiramatsu (6): um: Use printk instead of printf in make_uml_dir um: Add os_info() for pre-boot information messages um: Use os_info for the messages on normal path um: Add os_warn() for pre-boot warning/error messages um: Use os_warn to print out pre-boot warning/error messages um: console: Ignore console= option arch/um/drivers/stdio_console.c | 3 +++ arch/um/include/shared/os.h | 4 ++++ arch/um/kernel/physmem.c | 10 +++++----- arch/um/kernel/um_arch.c | 16 +++++++++------- arch/um/kernel/umid.c | 4 ++-- arch/um/os-Linux/execvp.c | 2 +- arch/um/os-Linux/main.c | 9 ++++----- arch/um/os-Linux/mem.c | 28 ++++++++++++++-------------- arch/um/os-Linux/start_up.c | 28 +++++++++++++++------------- arch/um/os-Linux/umid.c | 19 +++++++++++-------- arch/um/os-Linux/util.c | 34 ++++++++++++++++++++++++++++++++++ 11 files changed, 102 insertions(+), 55 deletions(-) -- Masami Hiramatsu