diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-strxcpyx.c | 2 | ||||
-rw-r--r-- | src/test/test-util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-strxcpyx.c b/src/test/test-strxcpyx.c index cb2309210f..a7c8e1267d 100644 --- a/src/test/test-strxcpyx.c +++ b/src/test/test-strxcpyx.c @@ -48,7 +48,7 @@ static void test_strpcpyf(void) { size_t space_left; space_left = sizeof(target); - space_left = strpcpyf(&s, space_left, "space left: %zd. ", space_left); + space_left = strpcpyf(&s, space_left, "space left: %zu. ", space_left); space_left = strpcpyf(&s, space_left, "foo%s", "bar"); assert_se(streq(target, "space left: 25. foobar")); diff --git a/src/test/test-util.c b/src/test/test-util.c index 8471d310b2..a37316b9cb 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -603,7 +603,7 @@ static void test_get_process_comm(void) { r = get_process_environ(me, &env); assert_se(r >= 0 || r == -EACCES); - log_info("self strlen(environ): '%zd'", strlen(env)); + log_info("self strlen(environ): '%zu'", strlen(env)); if (!detect_container(NULL)) assert_se(get_ctty_devnr(1, &h) == -ENOENT); |