diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-05 21:43:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-05 21:46:48 +0100 |
commit | 4cd9a9d9ecf3a8835e21930f3215a5f5b74144be (patch) | |
tree | 3f80971f11384561d85fa04a6efd8f65bc28be3f /src/logs-show.c | |
parent | 258cdffc2f9f8cd3d243bd19f507bc73009d77d9 (diff) |
journal: rename syslog tag to identifier since that's what we call it on the server side.
Diffstat (limited to 'src/logs-show.c')
-rw-r--r-- | src/logs-show.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/logs-show.c b/src/logs-show.c index 358aea176f..d067ab818e 100644 --- a/src/logs-show.c +++ b/src/logs-show.c @@ -92,8 +92,8 @@ static int output_short(sd_journal *j, unsigned line, bool show_all) { const void *data; size_t length; size_t n = 0; - char *hostname = NULL, *tag = NULL, *comm = NULL, *pid = NULL, *message = NULL; - size_t hostname_len = 0, tag_len = 0, comm_len = 0, pid_len = 0, message_len = 0; + char *hostname = NULL, *identifier = NULL, *comm = NULL, *pid = NULL, *message = NULL; + size_t hostname_len = 0, identifier_len = 0, comm_len = 0, pid_len = 0, message_len = 0; assert(j); @@ -105,7 +105,7 @@ static int output_short(sd_journal *j, unsigned line, bool show_all) { else if (r > 0) continue; - r = parse_field(data, length, "SYSLOG_TAG=", &tag, &tag_len); + r = parse_field(data, length, "SYSLOG_IDENTIFIER=", &identifier, &identifier_len); if (r < 0) goto finish; else if (r > 0) @@ -153,9 +153,9 @@ static int output_short(sd_journal *j, unsigned line, bool show_all) { n += hostname_len + 1; } - if (tag && shall_print(show_all, tag, tag_len)) { - printf(" %.*s", (int) tag_len, tag); - n += tag_len + 1; + if (identifier && shall_print(show_all, identifier, identifier_len)) { + printf(" %.*s", (int) identifier_len, identifier); + n += identifier_len + 1; } else if (comm && shall_print(show_all, comm, comm_len)) { printf(" %.*s", (int) comm_len, comm); n += comm_len + 1; @@ -190,7 +190,7 @@ static int output_short(sd_journal *j, unsigned line, bool show_all) { finish: free(hostname); - free(tag); + free(identifier); free(comm); free(pid); free(message); |