Go to file
Nicolas Pitre 533dcaf374 lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats
There might be a sign extension when a long is promoted to
int_value_type and the former type is smaller than the later.
This produces the wrong output if the specified format is unsigned.

Let's avoid this problem by handling signed and unsigned cases
explicitly. When the type already matches int_value_type then the
compiler is smart enough to recognize the redundancy and removes
unneeded duplications automatically, meaning that the code will stay
small when code size matters.

A similar issue also existed in the restricted %llu case.
The fix is the same as above.

Those fixes exposed wrong results in the printk.c test with %llx
so fix that as well.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-09-03 08:17:19 -04:00
.buildkite ci: Reduce number of workers back to 20 2021-05-10 05:27:27 -05:00
.github workflows: backport: Switch to using main 2021-05-31 15:40:33 -04:00
arch x86/cache: fix issues in arch dcache flush function 2021-08-30 09:16:39 -04:00
boards boards: arm: Clarify J-Link OpenSDA firmware usage for frdm_k64f 2021-06-04 11:30:35 +02:00
cmake cmake: force GCC to emit DWARF version 4 2021-08-30 09:17:26 -04:00
doc doc: 2.6.1 release notes 2021-08-03 15:31:51 -04:00
drivers drivers/clock_control: stm32: Fix macro to get HCLK freq 2021-07-24 18:18:16 -05:00
dts dts/arm: st: g0: closes parenthesis for soc 2021-06-08 14:36:27 -05:00
include kernel: add macros to allow declaring extern stack arrays 2021-08-30 09:17:47 -04:00
kernel kernel: use proper macro to declare extern interrupt stacks 2021-08-30 09:17:47 -04:00
lib lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats 2021-09-03 08:17:19 -04:00
misc
modules Tracing: TraceRecorder CMake update 2021-06-18 12:32:53 -05:00
samples drivers: fix pm callback signature 2021-06-04 08:16:49 -05:00
scripts kernel: ignore array bound warnings for generated syscall funcs 2021-08-30 09:17:26 -04:00
share cmake: check zephyr version if specified and ZEPHYR_BASE is set 2021-05-25 16:48:35 -05:00
soc riscv: openisa_rv32m1: Fix booting of rv32m1_vega 2021-07-02 06:36:28 -05:00
subsys Bluetooth: Controller: Fix advertising after connections from same peer 2021-08-30 09:16:58 -04:00
tests lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats 2021-09-03 08:17:19 -04:00
.checkpatch.conf
.clang-format
.codecov.yml
.editorconfig
.gitattributes
.gitignore
.gitlint
.mailmap
.uncrustify.cfg
CMakeLists.txt
CODE_OF_CONDUCT.md
CODEOWNERS boards: arm: Modify BMD-345-EVAL support 2021-05-18 11:26:31 -05:00
CONTRIBUTING.rst
Kconfig
Kconfig.zephyr Kconfig.zephyr: fix MISRA_SANE location 2021-05-21 18:11:26 -04:00
LICENSE
MAINTAINERS.yml MAINTAINERS.yml: Add myself as ARM collaborator 2021-05-26 14:11:45 -05:00
README.rst
VERSION release: Bump release to 2.6.1-rc1 2021-08-03 15:31:51 -04:00
version.h.in
west.yml Tracing: TraceRecorder CMake update 2021-06-18 12:32:53 -05:00
zephyr-env.cmd
zephyr-env.sh

.. raw:: html

   <a href="https://www.zephyrproject.org">
     <p align="center">
       <img src="doc/images/Zephyr-Project.png">
     </p>
   </a>

   <a href="https://bestpractices.coreinfrastructure.org/projects/74"><img
   src="https://bestpractices.coreinfrastructure.org/projects/74/badge"></a>
   <a href="https://buildkite.com/zephyr/zephyr">
   <img
   src="https://badge.buildkite.com/f5bd0dc88306cee17c9b38e78d11bb74a6291e3f40e7d13f31.svg?branch=master"></a>


The Zephyr Project is a scalable real-time operating system (RTOS) supporting
multiple hardware architectures, optimized for resource constrained devices,
and built with security in mind.

The Zephyr OS is based on a small-footprint kernel designed for use on
resource-constrained systems: from simple embedded environmental sensors and
LED wearables to sophisticated smart watches and IoT wireless gateways.

The Zephyr kernel supports multiple architectures, including ARM Cortex-M,
Intel x86, ARC, Nios II, Tensilica Xtensa, and RISC-V, and a large number of
`supported boards`_.

.. below included in doc/introduction/introduction.rst

.. start_include_here

Getting Started
***************

Welcome to Zephyr! See the `Introduction to Zephyr`_ for a high-level overview,
and the documentation's `Getting Started Guide`_ to start developing.

Community Support
*****************

Community support is provided via mailing lists and Slack; see the Resources
below for details.

.. _project-resources:

Resources
*********

Here's a quick summary of resources to help you find your way around:

* **Help**: `Asking for Help Tips`_
* **Documentation**: http://docs.zephyrproject.org (`Getting Started Guide`_)
* **Source Code**: https://github.com/zephyrproject-rtos/zephyr is the main
  repository; https://elixir.bootlin.com/zephyr/latest/source contains a
  searchable index
* **Releases**: https://github.com/zephyrproject-rtos/zephyr/releases
* **Samples and example code**: see `Sample and Demo Code Examples`_
* **Mailing Lists**: users@lists.zephyrproject.org and
  devel@lists.zephyrproject.org are the main user and developer mailing lists,
  respectively. You can join the developer's list and search its archives at
  `Zephyr Development mailing list`_. The other `Zephyr mailing list
  subgroups`_ have their own archives and sign-up pages.
* **Nightly CI Build Status**: https://lists.zephyrproject.org/g/builds
  The builds@lists.zephyrproject.org mailing list archives the CI
  (buildkite) nightly build results.
* **Chat**: Zephyr's Slack workspace is https://zephyrproject.slack.com.  Use
  this `Slack Invite`_ to register.
* **Contributing**: see the `Contribution Guide`_
* **Wiki**: `Zephyr GitHub wiki`_
* **Issues**: https://github.com/zephyrproject-rtos/zephyr/issues
* **Security Issues**: Email vulnerabilities@zephyrproject.org to report
  security issues; also see our `Security`_ documentation. Security issues are
  tracked separately at https://zephyrprojectsec.atlassian.net.
* **Zephyr Project Website**: https://zephyrproject.org

.. _Slack Invite: https://tinyurl.com/y5glwylp
.. _supported boards: http://docs.zephyrproject.org/latest/boards/index.html
.. _Zephyr Documentation: http://docs.zephyrproject.org
.. _Introduction to Zephyr: http://docs.zephyrproject.org/latest/introduction/index.html
.. _Getting Started Guide: http://docs.zephyrproject.org/latest/getting_started/index.html
.. _Contribution Guide: http://docs.zephyrproject.org/latest/contribute/index.html
.. _Zephyr GitHub wiki: https://github.com/zephyrproject-rtos/zephyr/wiki
.. _Zephyr Development mailing list: https://lists.zephyrproject.org/g/devel
.. _Zephyr mailing list subgroups: https://lists.zephyrproject.org/g/main/subgroups
.. _Sample and Demo Code Examples: http://docs.zephyrproject.org/latest/samples/index.html
.. _Security: http://docs.zephyrproject.org/latest/security/index.html
.. _Asking for Help Tips: https://docs.zephyrproject.org/latest/guides/getting-help.html