aboutgitcodebugslistschat
path: root/util.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-02-23 18:32:20 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-02-27 18:53:38 +0100
commit834b9a30491b0211f59b4e0ac2a79910665f8e0d (patch)
treef94e634fee99243167ebef875cfad078e80b433b /util.h
parentbad252687271c0255f6a077f19cbc19aa0427f8d (diff)
downloadpasst-834b9a30491b0211f59b4e0ac2a79910665f8e0d.tar
passt-834b9a30491b0211f59b4e0ac2a79910665f8e0d.tar.gz
passt-834b9a30491b0211f59b4e0ac2a79910665f8e0d.tar.bz2
passt-834b9a30491b0211f59b4e0ac2a79910665f8e0d.tar.lz
passt-834b9a30491b0211f59b4e0ac2a79910665f8e0d.tar.xz
passt-834b9a30491b0211f59b4e0ac2a79910665f8e0d.tar.zst
passt-834b9a30491b0211f59b4e0ac2a79910665f8e0d.zip
log: Send identifier string in log messages, openlog() won't work for us
openlog() can be used to set "ident" and have all the log messages prefixed by it, but only if we call syslog() -- this is implemented by C libraries. We don't log messages with syslog(), though, as we have a custom implementation to ensure we don't need dynamic memory allocation. This means that it's perfectly useless to call openlog(), and that we have to prefix every message we log by the identifier on our own. Reported-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Tested-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions