mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] introduce compiletime loglevel
@ 2013-01-29  8:45 Sascha Hauer
  2013-01-29  8:45 ` [PATCH 01/12] consolidate print* in a single header Sascha Hauer
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Sascha Hauer @ 2013-01-29  8:45 UTC (permalink / raw)
  To: barebox

This makes the loglevel configurable at compile time. This allows
to optimize away the lesser important messages from the binary.

Also added is a pr_fmt macro as in the kernel which allows to
define a file specific prefix to the pr_* messages.

As a positive side effect pr_debug() and debug() is no longer
optimized away by the preprocessor but by gcc. This way we have
nice warnings for all the wrong debug calls in the code, so this
series also cleans them up and it makes it harder to introduce
new wrong debug calls.

Sascha

----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (1):
      consolidate print* in a single header

Sascha Hauer (11):
      mtd m25p80: consistenly switch to dev_* messages
      treewide: fix format specifiers
      nios2: Let readl return an unsigned int
      nios2: Use unsigned long for __kernel_size_t
      blackfin: Use unsigned long for __kernel_size_t
      USB ehci: Use dev_* for messages
      introduce compile time loglevel
      introduce pr_fmt
      ARM mmu: Use pr_debug
      ARM pcm038: Specify pr_fmt and change messages to pr_*
      mtd nand: Specify pr_fmt and change messages to pr_*

 arch/arm/boards/pcm038/pcm038.c         |    5 ++-
 arch/arm/cpu/mmu.c                      |   27 ++++++++++--
 arch/arm/mach-imx/esdctl.c              |    4 +-
 arch/arm/mach-omap/gpmc.c               |    6 +--
 arch/blackfin/include/asm/posix_types.h |    2 +-
 arch/nios2/include/asm/io.h             |    2 +-
 arch/nios2/include/asm/posix_types.h    |    2 +-
 arch/ppc/lib/board.c                    |    4 +-
 common/Kconfig                          |   16 +++++++
 common/environment.c                    |   10 +++--
 common/hush.c                           |    4 +-
 common/module.c                         |    2 +-
 common/parser.c                         |    4 +-
 common/resource.c                       |   26 ++++++++---
 common/uimage.c                         |    5 ++-
 drivers/mci/mxs.c                       |    2 +-
 drivers/mtd/devices/m25p80.c            |   11 ++---
 drivers/mtd/nand/nand_base.c            |   39 +++++++++--------
 drivers/mtd/nand/nand_bbt.c             |   43 +++++++++---------
 drivers/mtd/nand/nand_write.c           |    4 +-
 drivers/nor/cfi_flash.c                 |   14 +++---
 drivers/nor/cfi_flash.h                 |    4 ++
 drivers/usb/host/ehci-hcd.c             |   73 +++++++++++++++++--------------
 fs/tftp.c                               |    4 +-
 include/common.h                        |   17 +------
 include/driver.h                        |   29 ------------
 include/linux/mtd/mtd.h                 |    2 +-
 include/printk.h                        |   72 ++++++++++++++++++++++++++++++
 lib/gui/bmp.c                           |    2 +-
 lib/xfuncs.c                            |    4 +-
 30 files changed, 269 insertions(+), 170 deletions(-)
 create mode 100644 include/printk.h

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-01-29  8:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-29  8:45 [PATCH] introduce compiletime loglevel Sascha Hauer
2013-01-29  8:45 ` [PATCH 01/12] consolidate print* in a single header Sascha Hauer
2013-01-29  8:45 ` [PATCH 02/12] mtd m25p80: consistenly switch to dev_* messages Sascha Hauer
2013-01-29  8:45 ` [PATCH 03/12] treewide: fix format specifiers Sascha Hauer
2013-01-29  8:45 ` [PATCH 04/12] nios2: Let readl return an unsigned int Sascha Hauer
2013-01-29  8:45 ` [PATCH 05/12] nios2: Use unsigned long for __kernel_size_t Sascha Hauer
2013-01-29  8:45 ` [PATCH 06/12] blackfin: " Sascha Hauer
2013-01-29  8:45 ` [PATCH 07/12] USB ehci: Use dev_* for messages Sascha Hauer
2013-01-29  8:45 ` [PATCH 08/12] introduce compile time loglevel Sascha Hauer
2013-01-29  8:45 ` [PATCH 09/12] introduce pr_fmt Sascha Hauer
2013-01-29  8:45 ` [PATCH 10/12] ARM mmu: Use pr_debug Sascha Hauer
2013-01-29  8:45 ` [PATCH 11/12] ARM pcm038: Specify pr_fmt and change messages to pr_* Sascha Hauer
2013-01-29  8:45 ` [PATCH 12/12] mtd nand: " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox