Skip to content

um: Output messages to stderr and support quiet option

Masami Hiramatsu linux-um lkml 3 versions – In review

Get series with b4
b4 am 149504121868.2543.16105153409840504430.stgit@devbox

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyIn review
  2. v2 RFC6 patches 0 repliesSuperseded
  3. v1 RFC7 patches 1 replySuperseded

Changes in v3 from the cover letter

- Cast rlim_min/max to unsigned long long explicitly for avoiding printf-format warning.
- Fix printf format in physmem.c so that it matches the type of arguments.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6um: Use printk instead of printf in make_uml_dirarch/um/os-Linux/umid.c+7 -40 replies
2/6um: Add os_info() for pre-boot information messagesarch/um/include/shared/os.h arch/um/os-Linux/util.c+27 -00 replies
3/6um: Use os_info for the messages on normal patharch/um/kernel/um_arch.c arch/um/os-Linux/main.c arch/um/os-Linux/mem.c +1 more+28 -270 replies
4/6um: Add os_warn() for pre-boot warning/error messagesarch/um/include/shared/os.h arch/um/os-Linux/util.c+11 -00 replies
5/6um: Use os_warn to print out pre-boot warning/error messagesarch/um/kernel/physmem.c arch/um/kernel/um_arch.c arch/um/kernel/umid.c +5 more+26 -240 replies
6/6um: console: Ignore console= optionarch/um/drivers/stdio_console.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/6] um: Output messages to stderr and support quiet option

Hello,

Here is version 3 of um-quiet series. In this version I just fixed some printf format issues.

V2 is here.

https://lkml.org/lkml/2017/5/8/35

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 v2:
- Cast rlim_min/max to unsigned long long explicitly for avoiding printf-format warning.
- Fix printf format in physmem.c so that it matches the type of arguments.

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 <[email protected]>