Wrong code at many places - BUG OS 6.X LATEST

There are several errors in many files … Seems to be copy-paste issue.
The same mistake is everywhere .
Exported project from online IDE, Nucleo-F207ZG. Latetst OS mbed 6.x .
BR

Compile: ws_pae_key_storage.c
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c: In function ‘ws_pae_key_storage_supp_write’:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:410:42: error: expected ‘)’ before ‘PRIi64’
410 | tr_error("KeyS write time err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), key_storage_array->storage_array_handle->reference_time, time_difference);
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:410:18: warning: spurious trailing ‘%’ in format [-Wformat=]
410 | tr_error("KeyS write time err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), key_storage_array->storage_array_handle->reference_time, time_difference);
| ^~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:410:40: note: format string is defined here
410 | tr_error("KeyS write time err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), key_storage_array->storage_array_handle->reference_time, time_difference);
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c: In function ‘ws_pae_key_storage_trace’:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:646:26: error: expected ‘)’ before ‘PRIi64’
646 | tr_info(“KeyS %s %s%“PRIi64” %“PRIi64” %s%s%i %s%s%s%s%s %s%s%i %i %s%i %i”,
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:646:13: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
646 | tr_info(“KeyS %s %s%“PRIi64” %“PRIi64” %s%s%i %s%s%s%s%s %s%s%i %i %s%i %i”,
| ^~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:646:20: note: format string is defined here
646 | tr_info(“KeyS %s %s%“PRIi64” %“PRIi64” %s%s%i %s%s%s%s%s %s%s%i %i %s%i %i”,
| ~^
| |
| char *
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:646:13: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
646 | tr_info(“KeyS %s %s%“PRIi64” %“PRIi64” %s%s%i %s%s%s%s%s %s%s%i %i %s%i %i”,
| ^~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:646:23: note: format string is defined here
646 | tr_info(“KeyS %s %s%“PRIi64” %“PRIi64” %s%s%i %s%s%s%s%s %s%s%i %i %s%i %i”,
| ~^
| |
| char *
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:646:13: warning: spurious trailing ‘%’ in format [-Wformat=]
646 | tr_info(“KeyS %s %s%“PRIi64” %“PRIi64” %s%s%i %s%s%s%s%s %s%s%i %i %s%i %i”,
| ^~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:646:24: note: format string is defined here
646 | tr_info(“KeyS %s %s%“PRIi64” %“PRIi64” %s%s%i %s%s%s%s%s %s%s%i %i %s%i %i”,
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c: In function ‘ws_pae_key_storage_store’:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:697:42: error: expected ‘)’ before ‘PRIx64’
697 | tr_info("KeyS storage store, bitf: %"PRIx64, store_bitfield);
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:697:13: warning: spurious trailing ‘%’ in format [-Wformat=]
697 | tr_info("KeyS storage store, bitf: %"PRIx64, store_bitfield);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:697:40: note: format string is defined here
697 | tr_info("KeyS storage store, bitf: %"PRIx64, store_bitfield);
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c: In function ‘ws_pae_key_storage_read’:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:771:38: error: expected ‘)’ before ‘PRIx64’
771 | tr_info("KeyS init store bitf: %"PRIx64, store_bitfield);
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:771:13: warning: spurious trailing ‘%’ in format [-Wformat=]
771 | tr_info("KeyS init store bitf: %"PRIx64, store_bitfield);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:771:36: note: format string is defined here
771 | tr_info("KeyS init store bitf: %"PRIx64, store_bitfield);
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:834:51: error: expected ‘)’ before ‘PRIi64’
834 | tr_error("KeyS read array time err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), key_storage_array->storage_array_handle->reference_time, time_difference);
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:834:22: warning: spurious trailing ‘%’ in format [-Wformat=]
834 | tr_error("KeyS read array time err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), key_storage_array->storage_array_handle->reference_time, time_difference);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:834:49: note: format string is defined here
834 | tr_error("KeyS read array time err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), key_storage_array->storage_array_handle->reference_time, time_difference);
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c: In function ‘ws_pae_key_storage_remove’:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:863:40: error: expected ‘)’ before ‘PRIx64’
863 | tr_info("KeyS remove store bitf: %"PRIx64, store_bitfield);
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:863:13: warning: spurious trailing ‘%’ in format [-Wformat=]
863 | tr_info("KeyS remove store bitf: %"PRIx64, store_bitfield);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:863:38: note: format string is defined here
863 | tr_info("KeyS remove store bitf: %"PRIx64, store_bitfield);
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c: In function ‘ws_pae_key_storage_array_time_update_entry’:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:936:59: error: expected ‘)’ before ‘PRIi64’
936 | tr_info(“KeyS time update PMK expired diff: %“PRIi64” t: %i %i eui64: %s”, time_difference, STIME_TIME_GET(storage_array_entry->pmk_lifetime), STIME_FORMAT_GET(storage_array_entry->pmk_lifetime), tr_array(storage_array_entry->ptk_eui_64, 8));
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:936:21: warning: spurious trailing ‘%’ in format [-Wformat=]
936 | tr_info(“KeyS time update PMK expired diff: %“PRIi64” t: %i %i eui64: %s”, time_difference, STIME_TIME_GET(storage_array_entry->pmk_lifetime), STIME_FORMAT_GET(storage_array_entry->pmk_lifetime), tr_array(storage_array_entry->ptk_eui_64, 8));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:936:57: note: format string is defined here
936 | tr_info(“KeyS time update PMK expired diff: %“PRIi64” t: %i %i eui64: %s”, time_difference, STIME_TIME_GET(storage_array_entry->pmk_lifetime), STIME_FORMAT_GET(storage_array_entry->pmk_lifetime), tr_array(storage_array_entry->ptk_eui_64, 8));
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:952:59: error: expected ‘)’ before ‘PRIi64’
952 | tr_info(“KeyS time update PTK expired diff: %“PRIi64” t: %i %i eui64: %s”, time_difference, STIME_TIME_GET(storage_array_entry->ptk_lifetime), STIME_FORMAT_GET(storage_array_entry->ptk_lifetime), tr_array(storage_array_entry->ptk_eui_64, 8));
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:952:21: warning: spurious trailing ‘%’ in format [-Wformat=]
952 | tr_info(“KeyS time update PTK expired diff: %“PRIi64” t: %i %i eui64: %s”, time_difference, STIME_TIME_GET(storage_array_entry->ptk_lifetime), STIME_FORMAT_GET(storage_array_entry->ptk_lifetime), tr_array(storage_array_entry->ptk_eui_64, 8));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:129:79: note: in definition of macro ‘tr_info’
129 | #define tr_info(…) mbed_tracef(TRACE_LEVEL_INFO, TRACE_GROUP, VA_ARGS) //!< Print info message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:952:57: note: format string is defined here
952 | tr_info(“KeyS time update PTK expired diff: %“PRIi64” t: %i %i eui64: %s”, time_difference, STIME_TIME_GET(storage_array_entry->ptk_lifetime), STIME_FORMAT_GET(storage_array_entry->ptk_lifetime), tr_array(storage_array_entry->ptk_eui_64, 8));
| ^
In file included from …/mbed-os/connectivity/libraries/nanostack-libservice/mbed-client-libservice/ns_trace.h:32,
from …/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:22:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c: In function ‘ws_pae_key_storage_array_time_check_and_update_all’:
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:972:46: error: expected ‘)’ before ‘PRIi64’
972 | tr_error("KeyS array time all err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), reference_time, time_difference);
| ^~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:972:18: warning: spurious trailing ‘%’ in format [-Wformat=]
972 | tr_error("KeyS array time all err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), reference_time, time_difference);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
…/mbed-os/platform/mbed-trace/include/mbed-trace/mbed_trace.h:143:79: note: in definition of macro ‘tr_error’
143 | #define tr_error(…) mbed_tracef(TRACE_LEVEL_ERROR, TRACE_GROUP, VA_ARGS) //!< Print Error Message
| ^~~~~~~~~~~
…/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_key_storage.c:972:44: note: format string is defined here
972 | tr_error("KeyS array time all err: %“PRIi64”, ref: %“PRIi64”, diff: %"PRIi32, ws_pae_current_time_get(), reference_time, time_difference);
| ^


/ws/ws_pae_key_storage.o] Error 1
make: *** [Makefile:26: all] Error 2