From 87c90cec38c43efbbd9cbfad1f0f607f428043d4 Mon Sep 17 00:00:00 2001 From: Noel Date: Thu, 15 Oct 2020 14:26:35 +0200 Subject: fix some *printf which are using "%l" ie. long specifiers which are not portable between Linux and Windows because long is not portable. In preparation for converting long -> tools::Long Change-Id: I8bf1aa1570946ca887a6c83dd5f99c024d437336 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104374 Tested-by: Jenkins Reviewed-by: Noel Grandin --- smoketest/libtest.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'smoketest') diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx index c23f1d2a992c..9a95f7faf80a 100644 --- a/smoketest/libtest.cxx +++ b/smoketest/libtest.cxx @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -111,7 +112,7 @@ int main (int argc, char **argv) } end = getTimeMS(); - fprintf( stderr, "init time: %ld ms\n", (end-start) ); + fprintf( stderr, "init time: %" SAL_PRIdINT64 " ms\n", sal_Int64(end-start) ); start = end; fprintf( stderr, "start to load document '%s'\n", argv[2] ); @@ -126,7 +127,7 @@ int main (int argc, char **argv) } end = getTimeMS(); - fprintf( stderr, "load time: %ld ms\n", (end-start) ); + fprintf( stderr, "load time: %" SAL_PRIdINT64 " ms\n", sal_Int64(end-start) ); start = end; if( argc > 3 ) @@ -145,7 +146,7 @@ int main (int argc, char **argv) { fprintf( stderr, "Save succeeded\n" ); end = getTimeMS(); - fprintf( stderr, "save time: %ld ms\n", (end-start) ); + fprintf( stderr, "save time: %" SAL_PRIdINT64 " ms\n", sal_Int64(end-start) ); } } fprintf( stderr, "all tests passed.\n" ); -- cgit