]> git.alsa-project.org Git - alsa-utils.git/commit
misc: fix incorrect usages of `strerror`
authorTianyi Liu <i.pear@outlook.com>
Tue, 21 Nov 2023 15:19:35 +0000 (23:19 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 8 Dec 2023 19:01:04 +0000 (20:01 +0100)
commitedff9652c050935ad7a0131b5585b4dad5e42296
tree6d02a422f9e5c6d6ac2d3604d5f4425ee3e4f42a
parent4ce6a0a4af518700c3e44257af5f44ff24d58fc9
misc: fix incorrect usages of `strerror`

`strerror` takes the `errno` directly as its argument,
negating it will result in an "Unknown error".

This fixes such usages across multiple modules.

Fixes: https://github.com/alsa-project/alsa-utils/pull/245
Signed-off-by: Tianyi Liu <i.pear@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaucm/usecase.c
nhlt/nhlt-dmic-info.c
topology/topology.c