summaryrefslogtreecommitdiff
path: root/src/test/test-log.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-08-14 09:16:16 +0200
committerSven Eden <yamakuzure@gmx.net>2017-08-14 09:20:58 +0200
commit7dee75c3e92339d219732cf4908e40380c31c0bf (patch)
treec1fb4503739ccbd93bfc2b9bd9a708cbc160c6ea /src/test/test-log.c
parentc8ef5e16e109c9082605e43e3ad0531dfb87a85c (diff)
Prep v235: Apply upstream fixes (9/10) [src/test]
Diffstat (limited to 'src/test/test-log.c')
-rw-r--r--src/test/test-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-log.c b/src/test/test-log.c
index 626d2c613..8ab569f47 100644
--- a/src/test/test-log.c
+++ b/src/test/test-log.c
@@ -39,7 +39,7 @@ int main(int argc, char* argv[]) {
log_open();
log_struct(LOG_INFO,
- "MESSAGE=Waldo PID="PID_FMT, getpid(),
+ "MESSAGE=Waldo PID="PID_FMT, getpid_cached(),
"SERVICE=piepapo",
NULL);
@@ -47,12 +47,12 @@ int main(int argc, char* argv[]) {
log_open();
log_struct(LOG_INFO,
- "MESSAGE=Foobar PID="PID_FMT, getpid(),
+ "MESSAGE=Foobar PID="PID_FMT, getpid_cached(),
"SERVICE=foobar",
NULL);
log_struct(LOG_INFO,
- "MESSAGE=Foobar PID="PID_FMT, getpid(),
+ "MESSAGE=Foobar PID="PID_FMT, getpid_cached(),
"FORMAT_STR_TEST=1=%i A=%c 2=%hi 3=%li 4=%lli 1=%p foo=%s 2.5=%g 3.5=%g 4.5=%Lg",
(int) 1, 'A', (short) 2, (long int) 3, (long long int) 4, (void*) 1, "foo", (float) 2.5f, (double) 3.5, (long double) 4.5,
"SUFFIX=GOT IT",