Skip to content

Sync and consolidate Linux-derived printk, BUILD_BUG, BUG, WARN, etc.

Tom Rini u-boot 2 versions New

Get series with b4
b4 am 20171005115803.GF13661@bill-the-cat

Versions newest first · linked by author and title

  1. v2 Latest posting 2/27 of 8 patches 0 repliesNew
  2. v2 posting 1/22 of 8 patches 0 repliesSuperseded

7 of 8 patches are in this archive. The cover letter announces 8.

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8stdio.h: move printf() stuff from <common.h> to <stdio.h>+0 -00 replies
2/8printk: collect printk stuff into <linux/printk.h> with loglevel support+0 -00 replies
3/8treewide: replace with error() with pr_err()+0 -00 replies
4/8common.h: remove error()+0 -00 replies
5/8vsprintf.h: include <linux/types.h>+0 -00 replies
6/8bug.h: sync BUILD_BUG stuff with Linux 4.13+0 -00 replies
7/8bug.h: move runtime BUG/WARN macros into <linux/bug.h>+0 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/8] Sync and consolidate Linux-derived printk, BUILD_BUG, BUG, WARN, etc.
Quoted 46 lines · Masahiro Yamada

Hi Tom,

2017-10-05 12:06 GMT+09:00 Tom Rini <[email protected]>:

Quoted 18 lines · Masahiro Yamada
Quoted 17 lines

2017-09-16 14:10 GMT+09:00 Masahiro Yamada <[email protected]>:

Quoted 15 lines

I tested this series with buildman.

Masahiro Yamada (8):
stdio.h: move printf() stuff from <common.h> to <stdio.h>
printk: collect printk stuff into <linux/printk.h> with loglevel
support
treewide: replace with error() with pr_err() common.h: remove error()
vsprintf.h: include <linux/types.h>
bug.h: sync BUILD_BUG stuff with Linux 4.13
bug.h: move runtime BUG/WARN macros into <linux/bug.h>
dm: define dev_*() log functions in DM header

Quoted 8 lines
Quoted 4 lines

I am still worried if this series is dismissed.

I am being blocked from importing NAND code from Linux due to missing/incompatible Linux-derived macros.

I am looking at this, but a default LOGLEVEL of 5 is just too high and I'm seeing what's reasonable now.

No. I set the default to 6, not 5.

The reason why I chose 6 was to suppress a bunch of pr_info() from drivers/mtd/nand/, which is a copy of Linux.

If you change it to a bigger number,
some annoying logs would be displayed after NAND: tag.

If you change it to a smaller number,
pr_notice() would be suppressed.

The Linux doc says:

Quoted 8 lines

5 (KERN_NOTICE) normal but significant condition

So, I think this is worth printing by default.

If you do not like it, you can change it,
but please make sure to adjust git-log.

Yes, sorry. You set it to 6, I had already ruled out 5 as too much. I'm currently looking at 3 globally as otherwise most platforms are growing by 5KiB or more (often much more). And I'm going to do it as a follow-up commit so it's clear.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171005/6b593ee5/attachment.sig>