chiark / gitweb /
tree-wide: when %m is used in log_*, always specify errno explicitly
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 May 2017 15:26:55 +0000 (11:26 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
commit6dd3666c62e6508289b40a2a3abd3a465197cefc
tree0ff25d089d2a9aef530c70078de7ecf06477b97d
parentd04b238170998e0cbcc86db0f8ae66c3ee4a14d6
tree-wide: when %m is used in log_*, always specify errno explicitly

All those uses were correct, but I think it's better to be explicit.
Using implicit errno is too error prone, and with this change we can require
(in the sense of a style guideline) that the code is always specified.

Helpful query: git grep -n -P 'log_[^s][a-z]+\(.*%m'
src/basic/selinux-util.c
src/core/cgroup.c