summaryrefslogtreecommitdiff
path: root/src/udev/udev-rules.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-27 16:55:17 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-29 13:00:33 +0900
commitee2975a9d9ae11e387f1c5af179e2e6b0ef6ada8 (patch)
tree812fb31f96dcaf612ea19f8e3b193fba7bbae91e /src/udev/udev-rules.c
parent09ba6d1a14ba027f2bc4e3426c7dd85db19e720e (diff)
downloadsystemd-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