zephyr/misc
Leandro Pereira 99a7168b08 misc: Support left-justification in printk()
This is supported by printf(), and is an important formatting feature
to print out some complex, nicely-formatted information.  This is
accomplished by using a negative padding in the formatting string.

The following code:

      printk("none:         |%u| |%x|\n", 12345, 12345);
      printk("zero_before:  |%08u| |%08x|\n", 12345, 12345);
      printk("space_before: |%8u| |%8x|\n", 12345, 12345);
      printk("space_after:  |%-8u| |%-8x|\n", 12345, 12345);

Will produce the following output:

      none:         |12345| |3039|
      zero_before:  |00012345| |0000000000003039|
      space_before: |   12345| |            3039|
      space_after:  |12345   | |3039            |

Change-Id: I9c2d85a1790087d53b52b7713854adaf99282f09
Jira: ZEP-1599
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2017-04-21 11:06:16 +00:00
..
generated kernel: remove legacy.h and MDEF support 2017-04-19 10:59:35 -05:00
Kconfig misc: Allow flash image size to be constrained 2017-04-14 01:35:59 +00:00
Makefile debug: move debug features from misc to subsys/debug 2016-12-19 19:58:40 +00:00
cpp_ctors.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_dtors.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_init_array.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_virtual.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpp_vtable.cpp license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
printk.c misc: Support left-justification in printk() 2017-04-21 11:06:16 +00:00
reboot.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
ring_buffer.c misc: convert to using newly introduced integer sized types 2017-04-20 11:56:00 -05:00