mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] introduce compiletime loglevel
Date: Tue, 29 Jan 2013 09:45:35 +0100	[thread overview]
Message-ID: <1359449147-30145-1-git-send-email-s.hauer@pengutronix.de> (raw)

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

             reply	other threads:[~2013-01-29  8:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29  8:45 Sascha Hauer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1359449147-30145-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox