path: root/cpukit/libcsupport/src/printk.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-02rtems: Generate <rtems/bspIo.h>Sebastian Huber1-3/+4
Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Place the group into the I/O Manager group. Add all source files to the group. Update #3899. Update #3993. Update #4482.
2020-04-16Canonicalize config.h includeSebastian Huber1-1/+1
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2016-05-25cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns1-4/+5
This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
2012-12-13libcsupport: Doxygen enhancement task #9Alex Ivanov1-4/+9
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2011-02-012011-02-01 Ralf Corsepius <>Ralf Corsepius1-1/+1
* libcsupport/src/printk.c: Fix typo.
2009-05-152009-05-15 Joel Sherrill <>Joel Sherrill1-137/+0
* libcsupport/, libcsupport/src/printk.c: Restructure to make analysis and coverage easier. Now 100% covered. * libcsupport/src/vprintk.c: New file.
2008-10-032008-10-03 Joel Sherrill <>Joel Sherrill1-1/+1
* libcsupport/src/printk.c: Addresses can be larger than integers so use long for %p formats. * score/inline/rtems/score/address.inl: Offsets can be positive or negative, so use int32_t. Also do math with intptr_t since there are cases where the number of bits in an address do not equal the number of bits in an integer. * score/inline/rtems/score/heap.inl: Offsets can be positive or negative, so use int32_t.
2008-05-27Bugfix: String output without width option.Thomas Doerfler1-0/+5
2008-02-062008-02-06 Joel Sherrill <>Joel Sherrill1-4/+29
* libcsupport/src/printk.c: Added width and padding for %s. * libmisc/cpuuse/cpuusagereport.c: Support object names that are strings longer than 4 chanracters.
2007-12-172007-12-17 Joel Sherrill <>Joel Sherrill1-44/+48
* libcsupport/src/printk.c: Style.
2007-11-262007-11-26 Joel Sherrill <>Joel Sherrill1-1/+1
* libcsupport/src/printk.c, score/src/objectget.c: Fix spacing.
2007-09-102007-09-10 Joel Sherrill <>Joel Sherrill1-5/+0
* libcsupport/src/printk.c: Remove unnecessary comments.
2007-09-062007-09-06 Joel Sherrill <>Joel Sherrill1-21/+20
* libcsupport/, libcsupport/src/printk.c: * libcsupport/src/printk_plugin.c: New file. include/rtems/bspIo.h, libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuuse.h, libmisc/stackchk/check.c, libmisc/stackchk/stackchk.h: rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonreportstatistics.c: Added capability to specify your own "printf" routine to various reporting functions. This added an XXX_with_plugin as the underlying implementation for + rtems_rate_monotonic_report_statistics + rtems_stack_checker_report_usage + rtems_cpu_usage_report As demonstration, the http netdemo can now print out stack and cpu usage reports.
2007-04-022007-04-02 Joel Sherrill <>Joel Sherrill1-8/+1
* libcsupport/src/printk.c: Add %p support.
2005-08-122005-08-12 Chris Johns <>Joel Sherrill1-4/+2
PR 808/rtems_misc * libcsupport/src/printk.c: Fix bug where specifying field width crashed on pc386 BSP.
2004-04-18Remove stray white spaces.Ralf Corsepius1-6/+6
2004-04-15Remove stray white spaces.Ralf Corsepius1-1/+0
2003-09-262003-09-26 Till Strauman <>Joel Sherrill1-0/+1
PR 498/rtems * src/printk.c: RTEMS printk() does not support the %i format which is used by a lot of driver/BSP etc. code. The trivial patch allows %i/%I as an alias for %d/%D.
2002-10-30Add vprintk function for kernel printing from routinesEric Norum1-4/+11
which have already obtained the va_list pointer.
2002-04-082002-04-06 Ralf Corsepius <>Joel Sherrill1-1/+0
* libc/stat.c: include <string.h>. * libc/printk.c: Remove libcpu/cpu.h.
2002-01-042002-01-03 Ralf Corsepius <>Joel Sherrill1-1/+1
* libc/printk.c: Include rtems/bspIo.h instead of bspIo.h. * include/ Remove bspIo.h. * include/bspIo.h: Removed.
2001-10-102001-10-10 Joel Sherrill <>Joel Sherrill1-1/+1
* libc/printk.c (printNum): Properly handle a maxwidth of 0 as reported by Nick Hennenfent <NICK.HENNENFENT@ROCHE.COM>.
2001-01-082001-01-08 Ralf Corsepius <>Joel Sherrill1-0/+3
* Add libc/config.h * libc/ Add INCLUDES += -I. to pickup config.h * libc/.cvsignore: Add config.h and stamp-h * libc/*.c: Add config.h support.
2000-06-15Fixing warning obtained by some users.Joel Sherrill1-0/+4
2000-06-12Added printk as a generic, shared routine.Joel Sherrill1-8/+31
1998-08-31Patch from Eric Valette <>:Joel Sherrill1-11/+33
Here is a brief description of the attached patch : 1) There was a bug in the code for the COM2 serial line driver. Aleksey gave me a fix that fixes the driver code itself. I would like to thank him again publicly, 2) I introduced constants in the serial driver code because I had a hard time reading the meanning of hexadecimal values in the NS data book :) 3)You can now mix printk and printf on serial line (tested on COM2). There is a #ifdef PRINTK_ON_SERIAL in console.c that enables to have printk on console while printf on serial line, 4) Removed call to displayCpuInfo because anyway if was at the wrong place for serial line console (too early). It can anyway be called at application level, 5) The original printk was unable to display negative integer values and was also recursive. It now works corectly, All the modifications have been tested here on the COM2 port from a PC running RTEMS to a PC running linux, NB : there is still a bug on PC386 serial line : exit does not flush the remaining output queue. As this is not a bug in the driver itself but somewhere in PC386 initialization/termios relationship it will be part of another patch. NB2 : As Emmanuel excerced the exception hanlder code, while porting the SMC driver to the new BSD stack, we found a bug in the exception handler : it shall not delete the current thread in case we are running at interrupt level. This will be part of another patch...
1998-08-05Patch from Eric Valette <> which brings the i386ex BSPJoel Sherrill1-0/+99
inline with the new IRQ structure.