1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/tiny_strerror/Kconfig
Marian Buschsieweke 1bdc1a5967
sys/tiny_strerror: add tiny strerror() implementation
`tiny_strerror()` is a drop-in replacement for `strerror()`, but
instead of a long help message it returns the much shorter macro name
matching the given number.

The (pseudo-)module `tiny_strerror_as_strerror` can be used to
replace all calls to `strerror()` with calls to `tiny_strerror()`.
2022-09-20 15:51:11 +02:00

23 lines
746 B
Plaintext

# Copyright (C) 2022 Otto-von-Guericke-Universität Magdeburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config MODULE_TINY_STRERROR
bool
depends on TEST_KCONFIG
help
This module provides `tiny_strerror()`, a drop-in replacement for
`strerror()` that returns the errno macro name rather than a verbose
help description string.
config MODULE_TINY_STRERROR_AS_STRERROR
bool
depends on TEST_KCONFIG
select MODULE_TINY_STRERROR
help
This replaces all calls to `strerror()` with calls to `tiny_strerror()`
via linker magic. This may safe a bit of ROM.