Skip to content

Fix scanning 64-bit integer types#974

Open
yizhao1 wants to merge 1 commit intoCOVESA:masterfrom
yizhao1:scanning-64
Open

Fix scanning 64-bit integer types#974
yizhao1 wants to merge 1 commit intoCOVESA:masterfrom
yizhao1:scanning-64

Conversation

@yizhao1
Copy link
Contributor

@yizhao1 yizhao1 commented Nov 5, 2025

Fix build error on 32-bit host:
test/network_tests/cpu_load_tests/cpu_load_measurer.cpp:89:24: error: format '%lu' expects argument of type 'long unsigned int*', but argument 3 has type 'uint64_t*' {aka 'long long unsigned int*'} [-Werror=format=]
89 | "%lu %lu %ld %ld", // utime, stime, cutime, cstime
| ~~^
| |
| long unsigned int*
| %llu
90 | &utime, &stime, &cutime, &cstime)
| ~~~~~~
| |
| uint64_t* {aka long long unsigned int*}

Fix build error on 32-bit host:
test/network_tests/cpu_load_tests/cpu_load_measurer.cpp:89:24: error: format '%lu' expects argument of type 'long unsigned int*',
but argument 3 has type 'uint64_t*' {aka 'long long unsigned int*'} [-Werror=format=]
   89 |   "%lu %lu %ld %ld", // utime, stime, cutime, cstime
      |    ~~^
      |      |
      |      long unsigned int*
      |    %llu
   90 |   &utime, &stime, &cutime, &cstime)
      |   ~~~~~~
      |   |
      |   uint64_t* {aka long long unsigned int*}

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant