summaryrefslogtreecommitdiffstats
path: root/src/journal/journald-server.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-10-30 20:01:50 +0100
committerLennart Poettering <lennart@poettering.net>2017-11-16 12:40:17 +0100
commit131819424db7cae7a4f0251cc675dabd2c9e0d49 (patch)
treea22eb94725138fa4641b9dbaa246cf0de17f8b51 /src/journal/journald-server.h
parentjournal: reindent field mapping tables (diff)
downloadsystemd-131819424db7cae7a4f0251cc675dabd2c9e0d49.tar.xz
systemd-131819424db7cae7a4f0251cc675dabd2c9e0d49.zip
journald: when logging about dropped messages, include more meta data
When we drop messages of a unit, we log about. Let's add some structured data to that. Let's include how many messages we dropped, but more importantly, let's link up the message we generate to the unit we dropped the messages from by using the "OBJECT" logic, i.e. by generating OBJECT_SYSTEMD_UNIT= fields and suchlike, that "journalctl -u" and friends already look for. Fixes: #6494
Diffstat (limited to 'src/journal/journald-server.h')
-rw-r--r--src/journal/journald-server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
index f4bdd588cb..5efc5fe119 100644
--- a/src/journal/journald-server.h
+++ b/src/journal/journald-server.h
@@ -188,7 +188,7 @@ struct Server {
#define N_IOVEC_PAYLOAD_FIELDS 15
void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigned m, ClientContext *c, const struct timeval *tv, int priority, pid_t object_pid);
-void server_driver_message(Server *s, const char *message_id, const char *format, ...) _printf_(3,0) _sentinel_;
+void server_driver_message(Server *s, pid_t object_pid, const char *message_id, const char *format, ...) _sentinel_;
/* gperf lookup function */
const struct ConfigPerfItem* journald_gperf_lookup(const char *key, GPERF_LEN_TYPE length);