diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-15 14:26:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-16 11:12:31 +0200 |
commit | 87c90cec38c43efbbd9cbfad1f0f607f428043d4 (patch) | |
tree | b65b6ccc78a4a922c027f98e4d8ab5251fdf33bb /smoketest | |
parent | 9b34dc20b6946698ae6ce2d5d859885bfb444633 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/libtest.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 <malloc.h> #include <assert.h> #include <math.h> +#include <sal/types.h> #include <LibreOfficeKit/LibreOfficeKitInit.h> #include <LibreOfficeKit/LibreOfficeKit.hxx> @@ -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" ); |