diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-27 16:55:17 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-29 13:00:33 +0900 |
commit | ee2975a9d9ae11e387f1c5af179e2e6b0ef6ada8 (patch) | |
tree | 812fb31f96dcaf612ea19f8e3b193fba7bbae91e /src/udev/udev-rules.c | |
parent | 09ba6d1a14ba027f2bc4e3426c7dd85db19e720e (diff) | |
download | systemd-ee2975a9d9ae11e387f1c5af179e2e6b0ef6ada8.tar.gz |
log: Add LOG_SET_PREFIX() macro
LOG_SET_PREFIX() sets a logging prefix for the current block. The
prefix is prepended to every logging message in the block, followed
by ": ". If a logging prefix is already configured, it is overridden
for the duration of the block, after which it is restored.
A use case for this macro is when we're operating on an image or
directory (using --root or --image). We can use LOG_SET_PREFIX() to
prefix all logging messages with the directory or image that we're
operating on.
Diffstat (limited to 'src/udev/udev-rules.c')
0 files changed, 0 insertions, 0 deletions