diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-10 14:11:55 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-11 16:47:40 +0200 |
commit | b9ce5cf9caf52503394ad5eac7a3dee2eee1a296 (patch) | |
tree | 81597533b7cc9d504788efa367e2263637250d9c /meson_options.txt | |
parent | core: use LOG_UNIT_MESSAGE() where appropriate (diff) | |
download | systemd-b9ce5cf9caf52503394ad5eac7a3dee2eee1a296.tar.xz systemd-b9ce5cf9caf52503394ad5eac7a3dee2eee1a296.zip |
Optionally call printf on LOG_MESSAGE() arguments
With an intentional mistake:
../src/login/logind-dbus.c: In function ‘bus_manager_log_shutdown’:
../src/login/logind-dbus.c:1542:39: error: format ‘%s’ expects a matching ‘char *’ argument [-Werror=format=]
1542 | LOG_MESSAGE("%s %s", message),
| ^~~~~~~
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 2a030ac28e..ff59120f77 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -470,6 +470,8 @@ option('fuzz-tests', type : 'boolean', value : 'false', description : 'run the fuzzer regression tests by default (with sanitizers)') option('install-tests', type : 'boolean', value : 'false', description : 'install test executables') +option('log-message-verification', type : 'boolean', value : 'false', + description : 'do fake printf() calls to verify format strings') option('ok-color', type : 'combo', choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', |