summaryrefslogtreecommitdiffstats
path: root/include/printk.h
Commit message (Collapse)AuthorAgeFilesLines
* printk: Fix pr_contSascha Hauer2016-07-221-1/+1
| | | | | | | pr_cont is meant to continue a line, so do not printf the prefix given with pr_fmt() again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* printk: Add pr_contAlexander Stein2016-04-081-0/+1
| | | | | | | This is needed by upcoming UBIFS update. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* printk: Add printk_onceAlexander Stein2016-04-081-0/+10
| | | | | | | This is needed by upcoming list_sort implementation. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* printk: Add missing include/declarationMarkus Pargmann2015-12-101-0/+3
| | | | | | | There are functions or structs used that do need these. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add PBL console supportSascha Hauer2015-01-051-5/+10
| | | | | | | | | | | This adds simple console support to the PBL which makes it possible to print more complex messages in the PBL than just strings or hex numbers. For now puts_ll is used to print the messages, so it depends on CONFIG_DEBUG_LL which makes it more a debugging option. However, this could be extended later to get regular output from the PBL if desired. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: Fix CONSOLE_NONE supportSascha Hauer2014-10-081-0/+12
| | | | | | | | Without console support we need a static inline version of pr_print and dev_printf, otherwise we get link errors. Reported-by: Kevin Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce message logging supportSascha Hauer2014-09-301-0/+17
| | | | | | | | | | This adds a buffer for log messages and a 'dmesg' command to print the messages. The log buffer is implemented as log objects rather than a string buffer. This makes it easy to implement limiting the messages, cleaning the buffer and timestamping the messages. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce verbose debugSascha Hauer2014-07-171-1/+7
| | | | | | | | During debugging it sometimes helps to me even more verbose. This adds an additional debug level for this. Also we remove an already existing pr_vdebug definition in the USB gadget u_serial driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce runtime loglevelSascha Hauer2013-09-291-3/+6
| | | | | | | With this the verbosity of barebox can be controlled during runtime using the 'loglevel' globalvar. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include/printk: fix level of pr_err and pr_warningHubert Feurstein2013-07-221-2/+2
| | | | | | | The level of pr_err and pr_warning were interchanged. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix another brown paper bag bug introduced with compile time loglevelSascha Hauer2013-03-061-4/+1
| | | | | | | | | | __pr_printk is a define which uses a local variable 'ret'. This means that whenever someone does a pr_*("ret: %d\n", ret); ret will be 0. Fix this by writing this without a local variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix brown paper bag bug introduced with compile time loglevelSascha Hauer2013-02-151-4/+1
| | | | | | | | | | __dev_printf is a define which uses a local variable 'ret'. This means that whenever someone does a dev_*(dev, "ret: %d\n", ret); ret will be 0. Fix this by writing this without a local variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce pr_fmtSascha Hauer2013-01-271-9/+13
| | | | | | | | | | With this the files can give more context to their pr_* messages by specifying a at the beginning of the files. Basically the same mechanism as in the Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce compile time loglevelSascha Hauer2013-01-271-28/+38
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* consolidate print* in a single headerJean-Christophe PLAGNIOL-VILLARD2013-01-271-0/+58
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>