Fix _do_log conditions in log_exec_* macros
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Apr 2024 14:10:49 +0000 (16:10 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 25 Apr 2024 16:24:36 +0000 (18:24 +0200)
commite85be4983d974063b5210e6df77d9109ffbc9932
treee55591137e35d828d8ebeab8fc71b436cec23b75
parent2541f28e4b455ea9325569364f7ea66fdbb5a79b
Fix _do_log conditions in log_exec_* macros

The expression for calculation of the _do_log values in the log_exec_*
macros need to be the same as the unit_log_level_test() function, used
to calculate _do_log in unit.h. The only difference between execute.h
and unit.h is the lack of the Unit structure.

Fixes: b646fc324a ("core: ensure execute/spawn functions can work without Unit object")
Fixes: 210ca71cb5 ("core/execute: clean up log_exec_full_errno and friends")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
src/core/execute.h