From 3e4658a142a01c21d3406d27519ce90747d39670 Mon Sep 17 00:00:00 2001 From: Wenchao Hao Date: Wed, 20 Nov 2024 17:06:05 +0800 Subject: [PATCH] test_swap: fix compile warning Signed-off-by: Wenchao Hao --- test_swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_swap.c b/test_swap.c index a30bd3b..0fb139b 100644 --- a/test_swap.c +++ b/test_swap.c @@ -42,7 +42,7 @@ int main() madvise(p, SIZE, MADV_PAGEOUT); gettimeofday(&tv_e, NULL); - printf("swp out bandwidth: %ld bytes/ms\n", SIZE/(tv_to_ms(tv_e) - tv_to_ms(tv_b))); + printf("swp out bandwidth: %lld bytes/ms\n", SIZE/(tv_to_ms(tv_e) - tv_to_ms(tv_b))); /* read to trigger swapin and */ gettimeofday(&tv_b, NULL); @@ -50,7 +50,7 @@ int main() *(c + i) = i; gettimeofday(&tv_e, NULL); - printf("swp in bandwidth: %ld bytes/ms\n", SIZE/(tv_to_ms(tv_e) - tv_to_ms(tv_b))); + printf("swp in bandwidth: %lld bytes/ms\n", SIZE/(tv_to_ms(tv_e) - tv_to_ms(tv_b))); pid = fork();