]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: don't use %m on read_str_ulong() failure
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 4 Jun 2025 16:16:25 +0000 (17:16 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 13:03:26 +0000 (08:03 -0500)
commita0bac391ff72105d555e700a750a87eb130b2ad8
tree516a86059e2088ca8887c64b9d9f612c91b937c7
parenta6217da17e0a9baee74a59b14d7c67578928b7e7
libkmod: don't use %m on read_str_ulong() failure

The function returns the actual error itself, identically to the signed
variant - read_str_long(). Unlike the signed variant, one of ulong's
users incorrectly uses %m instead of strerror(-err).

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/368
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-module.c