2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 11:13:58 +08:00
linux-next/tools/testing/selftests/vDSO
Tobias Klauser df00d02989 selftests/vDSO: fix -Wformat warning in vdso_test_correctness
Fix the following -Wformat warnings in vdso_test_correctness.c:

vdso_test_correctness.c: In function ‘test_one_clock_gettime64’:
vdso_test_correctness.c:352:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=]
  352 |  printf("\t%llu.%09ld %llu.%09ld %llu.%09ld\n",
      |                 ~~~~^
      |                     |
      |                     long int
      |                 %09lld
  353 |         (unsigned long long)start.tv_sec, start.tv_nsec,
      |                                           ~~~~~~~~~~~~~
      |                                                |
      |                                                long long int
vdso_test_correctness.c:352:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
  352 |  printf("\t%llu.%09ld %llu.%09ld %llu.%09ld\n",
      |                            ~~~~^
      |                                |
      |                                long int
      |                            %09lld
  353 |         (unsigned long long)start.tv_sec, start.tv_nsec,
  354 |         (unsigned long long)vdso.tv_sec, vdso.tv_nsec,
      |                                          ~~~~~~~~~~~~
      |                                              |
      |                                              long long int
vdso_test_correctness.c:352:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘long long int’ [-Wformat=]

The tv_sec member of __kernel_timespec is long long, both in
uapi/linux/time_types.h and locally in vdso_test_correctness.c.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-01-04 09:25:45 -07:00
..
.gitignore selftests/vDSO: add additional binaries to .gitignore 2021-01-04 09:25:44 -07:00
Makefile kselftest: Move test_vdso to the vDSO test suite 2020-10-27 17:58:33 -06:00
parse_vdso.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
parse_vdso.h selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_config.h kselftest: Extend vdso correctness test to clock_gettime64 2020-10-27 17:59:09 -06:00
vdso_standalone_test_x86.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_test_abi.c kselftest: Extend vDSO selftest 2020-10-27 17:57:08 -06:00
vdso_test_clock_getres.c kselftest: Extend vDSO selftest to clock_getres 2020-10-27 17:58:00 -06:00
vdso_test_correctness.c selftests/vDSO: fix -Wformat warning in vdso_test_correctness 2021-01-04 09:25:45 -07:00
vdso_test_getcpu.c selftests: vdso: Add a selftest for vDSO getcpu() 2020-05-22 11:05:07 -06:00
vdso_test_gettimeofday.c selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00