Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using PRI*16 and %zu format specifiers #17502

Merged
merged 4 commits into from
Apr 20, 2022

Conversation

andrei-menzopol
Copy link
Contributor

  • Commit generated by running the following git-extras commands:
    git sed -f g '" PRIu16 "' 'u'
    git sed -f g '" PRIu16' 'u"'
    git sed -f g '" PRIx16 "' 'x'
    git sed -f g '" PRIx16' 'x"'
    git sed -f g '" PRIX16 "' 'X'
    git sed -f g '" PRIX16' 'X"'
    git sed -f g '" PRId16 "' 'd'
    git sed -f g '" PRId16' 'd"'
    git sed -f g '%zu' '%u'

  • Cast some %zu parameters due to warnings

  • Add lint rules

  • Run restyle

This PR is similar with #15099

Problem

Some libcs such as newlib-nano don't support new format specifiers (> C89/C++11). This causes problems in logs and may also cause crashes due to promotion rules.

Change overview

Replace these format specifiers with simpler ones (%u/%d/%x) and cast where necessary.

Testing

Passed all CI/CD on my fork

@github-actions
Copy link

github-actions bot commented Apr 19, 2022

PR #17502: Size comparison from 8793870 to 5d0b953

Increases (6 builds for cc13x2_26x2, efr32, linux)
platform target config section 8793870 5d0b953 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 168424 168544 120 0.1
lock-ftd LP_CC2652R7 (read/write) 166448 166660 212 0.1
efr32 lighting-app BRD4161A+rpc (read/write) 149812 149816 4 0.0
window-app BRD4161A (read/write) 131116 131120 4 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10430092 10430108 16 0.0
.text 8804420 8804468 48 0.0
thermostat-no-ble arm64 (read only) 2359996 2360012 16 0.0
.text 1985648 1985680 32 0.0
Decreases (34 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 8793870 5d0b953 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 684759 684639 -120 -0.0
.rodata 103415 103295 -120 -0.1
lock-ftd LP_CC2652R7 (read only) 677679 677467 -212 -0.0
.rodata 98903 98691 -212 -0.2
lock-mtd LP_CC2652R7 (read only) 626423 626211 -212 -0.0
.rodata 98783 98571 -212 -0.2
pump-app LP_CC2652R7 (read only) 649807 649655 -152 -0.0
.rodata 75719 75567 -152 -0.2
pump-controller-app LP_CC2652R7 (read only) 643151 642963 -188 -0.0
.rodata 79055 78867 -188 -0.2
cyw30739 light cyw930739m2evb_01 (read/write) 619310 619214 -96 -0.0
.app_xip_area 526068 525972 -96 -0.0
lock cyw930739m2evb_01 (read/write) 613562 613450 -112 -0.0
.app_xip_area 521824 521712 -112 -0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566406 566382 -24 -0.0
.app_xip_area 465056 465032 -24 -0.0
efr32 lighting-app BRD4161A (read only) 909172 908968 -204 -0.0
.text 909164 908960 -204 -0.0
BRD4161A+rpc (read only) 943548 943352 -196 -0.0
.text 943540 943344 -196 -0.0
window-app BRD4161A (read only) 845540 845368 -172 -0.0
.text 845532 845360 -172 -0.0
esp32 all-clusters-app c3devkit (read/write) 1397866 1397658 -208 -0.0
.flash.rodata 201936 201728 -208 -0.1
m5stack (read/write) 465608 465384 -224 -0.0
.flash.rodata 231508 231284 -224 -0.1
k32w light k32w061+release (read/write) 684868 684856 -12 -0.0
.text 599164 599152 -12 -0.0
lock k32w061+release (read/write) 725716 725612 -104 -0.0
.text 639444 639340 -104 -0.0
linux chip-tool-no-interactive-ipv6only arm64 .rodata 516652 516620 -32 -0.0
thermostat-no-ble arm64 .rodata 145356 145340 -16 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2480352 2480120 -232 -0.0
.text 1442924 1442692 -232 -0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2438696 2438504 -192 -0.0
.text 1401268 1401076 -192 -0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2410300 2410116 -184 -0.0
.text 1372900 1372716 -184 -0.0
shell CY8CPROTO_062_4343W+release (read/write) 2364760 2364568 -192 -0.0
.text 1327332 1327140 -192 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1164691 1164451 -240 -0.0
rodata 147572 147332 -240 -0.2
lighting-app nrf52840dk_nrf52840 (read/write) 1150419 1150211 -208 -0.0
rodata 122492 122284 -208 -0.2
nrf52840dk_nrf52840+rpc (read/write) 1114699 1114499 -200 -0.0
rodata 113596 113396 -200 -0.2
nrf52840dongle_nrf52840 (read/write) 1058495 1058315 -180 -0.0
rodata 92552 92372 -180 -0.2
nrf5340dk_nrf5340_cpuapp (read/write) 1052854 1052650 -204 -0.0
rodata 115244 115040 -204 -0.2
lock-app nrf52840dk_nrf52840 (read/write) 1087739 1087519 -220 -0.0
rodata 134004 133784 -220 -0.2
nrf5340dk_nrf5340_cpuapp (read/write) 990442 990222 -220 -0.0
rodata 126808 126588 -220 -0.2
pump-app nrf52840dk_nrf52840 (read/write) 1070599 1070391 -208 -0.0
rodata 117920 117712 -208 -0.2
pump-controller-app nrf52840dk_nrf52840 (read/write) 1052223 1052015 -208 -0.0
rodata 113928 113720 -208 -0.2
p6 all-clusters-app default (read/write) 2517224 2517016 -208 -0.0
.text 1475488 1475280 -208 -0.0
light-app default (read/write) 2417144 2416952 -192 -0.0
.text 1375408 1375216 -192 -0.0
lock-app default (read/write) 2420608 2420432 -176 -0.0
.text 1378872 1378696 -176 -0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802060 -176 -0.0
Full report (34 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 8793870 5d0b953 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 684759 684639 -120 -0.0
(read/write) 168424 168544 120 0.1
.bss 76168 76168 0 0.0
.data 3380 3380 0 0.0
.rodata 103415 103295 -120 -0.1
.text 580864 580864 0 0.0
lock-ftd LP_CC2652R7 (read only) 677679 677467 -212 -0.0
(read/write) 166448 166660 212 0.1
.bss 74168 74168 0 0.0
.data 3212 3212 0 0.0
.rodata 98903 98691 -212 -0.2
.text 578292 578292 0 0.0
lock-mtd LP_CC2652R7 (read only) 626423 626211 -212 -0.0
(read/write) 146956 146956 0 0.0
.bss 69888 69888 0 0.0
.data 3212 3212 0 0.0
.rodata 98783 98571 -212 -0.2
.text 527148 527148 0 0.0
pump-app LP_CC2652R7 (read only) 649807 649655 -152 -0.0
(read/write) 152492 152492 0 0.0
.bss 74624 74624 0 0.0
.data 3244 3244 0 0.0
.rodata 75719 75567 -152 -0.2
.text 573600 573600 0 0.0
pump-controller-app LP_CC2652R7 (read only) 643151 642963 -188 -0.0
(read/write) 152160 152160 0 0.0
.bss 74328 74328 0 0.0
.data 3208 3208 0 0.0
.rodata 79055 78867 -188 -0.2
.text 563608 563608 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619310 619214 -96 -0.0
.app_xip_area 526068 525972 -96 -0.0
.bss 75908 75908 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 613562 613450 -112 -0.0
.app_xip_area 521824 521712 -112 -0.0
.bss 74436 74436 0 0.0
.data 648 648 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566406 566382 -24 -0.0
.app_xip_area 465056 465032 -24 -0.0
.bss 83752 83752 0 0.0
.data 564 564 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909172 908968 -204 -0.0
(read/write) 133128 133128 0 0.0
.bss 131088 131088 0 0.0
.data 2040 2040 0 0.0
.text 909164 908960 -204 -0.0
BRD4161A+rpc (read only) 943548 943352 -196 -0.0
(read/write) 149812 149816 4 0.0
.bss 147568 147568 0 0.0
.data 2244 2244 0 0.0
.text 943540 943344 -196 -0.0
window-app BRD4161A (read only) 845540 845368 -172 -0.0
(read/write) 131116 131120 4 0.0
.bss 129168 129168 0 0.0
.data 1948 1948 0 0.0
.text 845532 845360 -172 -0.0
esp32 all-clusters-app c3devkit (read only) 980742 980742 0 0.0
(read/write) 1397866 1397658 -208 -0.0
.dram0.bss 62600 62600 0 0.0
.dram0.data 14412 14412 0 0.0
.flash.rodata 201936 201728 -208 -0.1
.flash.text 980742 980742 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1036127 1036127 0 0.0
(read/write) 465608 465384 -224 -0.0
.dram0.bss 68112 68112 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 231508 231284 -224 -0.1
.flash.text 1030743 1030743 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684868 684856 -12 -0.0
.bss 77912 77912 0 0.0
.data 1992 1992 0 0.0
.text 599164 599152 -12 -0.0
lock k32w061+release (read/write) 725716 725612 -104 -0.0
.bss 78520 78520 0 0.0
.data 1952 1952 0 0.0
.text 639444 639340 -104 -0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10430092 10430108 16 0.0
(read/write) 494193 494193 0 0.0
.bss 40865 40865 0 0.0
.data 1184 1184 0 0.0
.data.rel.ro 390440 390440 0 0.0
.dynamic 560 560 0 0.0
.got 57904 57904 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 516652 516620 -32 -0.0
.text 8804420 8804468 48 0.0
thermostat-no-ble arm64 (read only) 2359996 2360012 16 0.0
(read/write) 151137 151137 0 0.0
.bss 62945 62945 0 0.0
.data 1440 1440 0 0.0
.data.rel.ro 78984 78984 0 0.0
.dynamic 560 560 0 0.0
.got 4752 4752 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 145356 145340 -16 -0.0
.text 1985648 1985680 32 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2480352 2480120 -232 -0.0
.bss 191120 191120 0 0.0
.data 5592 5592 0 0.0
.text 1442924 1442692 -232 -0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2438696 2438504 -192 -0.0
.bss 186436 186436 0 0.0
.data 5864 5864 0 0.0
.text 1401268 1401076 -192 -0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2410300 2410116 -184 -0.0
.bss 185228 185228 0 0.0
.data 5840 5840 0 0.0
.text 1372900 1372716 -184 -0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2364760 2364568 -192 -0.0
.bss 185000 185000 0 0.0
.data 5632 5632 0 0.0
.text 1327332 1327140 -192 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1164691 1164451 -240 -0.0
bss 136520 136520 0 0.0
rodata 147572 147332 -240 -0.2
text 801960 801960 0 0.0
lighting-app nrf52840dk_nrf52840 (read/write) 1150419 1150211 -208 -0.0
bss 140244 140244 0 0.0
rodata 122492 122284 -208 -0.2
text 809092 809092 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 1114699 1114499 -200 -0.0
bss 140480 140480 0 0.0
rodata 113596 113396 -200 -0.2
text 781560 781560 0 0.0
nrf52840dongle_nrf52840 (read/write) 1058495 1058315 -180 -0.0
bss 147436 147436 0 0.0
rodata 92552 92372 -180 -0.2
text 737692 737692 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 1052854 1052650 -204 -0.0
bss 136444 136444 0 0.0
rodata 115244 115040 -204 -0.2
text 719204 719204 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 1087739 1087519 -220 -0.0
bss 130216 130216 0 0.0
rodata 134004 133784 -220 -0.2
text 745044 745044 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 990442 990222 -220 -0.0
bss 126452 126452 0 0.0
rodata 126808 126588 -220 -0.2
text 655300 655300 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 1070599 1070391 -208 -0.0
bss 130196 130196 0 0.0
rodata 117920 117712 -208 -0.2
text 743832 743832 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 1052223 1052015 -208 -0.0
bss 129916 129916 0 0.0
rodata 113928 113720 -208 -0.2
text 729860 729860 0 0.0
p6 all-clusters-app default (read/write) 2517224 2517016 -208 -0.0
.bss 118624 118624 0 0.0
.data 2768 2768 0 0.0
.text 1475488 1475280 -208 -0.0
light-app default (read/write) 2417144 2416952 -192 -0.0
.bss 112104 112104 0 0.0
.data 2576 2576 0 0.0
.text 1375408 1375216 -192 -0.0
lock-app default (read/write) 2420608 2420432 -176 -0.0
.bss 111880 111880 0 0.0
.data 2536 2536 0 0.0
.text 1378872 1378696 -176 -0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802060 -176 -0.0
bss 69952 69952 0 0.0
noinit 40416 40416 0 0.0
text 570790 570790 0 0.0

@andrei-menzopol
Copy link
Contributor Author

It seems that I still have some issues from my last commit, I'll fix them

Some libcs don't support them, use %u/%d/%x instead

* Commit generated by running the following git-extras commands:
		git sed -f g '" PRIu16 "' 'u'
		git sed -f g '" PRIu16' 'u"'
		git sed -f g '" PRIx16 "' 'x'
		git sed -f g '" PRIx16' 'x"'
		git sed -f g '" PRIX16 "' 'X'
		git sed -f g '" PRIX16' 'X"'
		git sed -f g '" PRId16 "' 'd'
		git sed -f g '" PRId16' 'd"'
		git sed -f g '%zu' '%u'

* Cast some %zu parameters due to warnings
* Add lint rules
* Run restyle

Signed-off-by: Andrei Menzopol <[email protected]>
Signed-off-by: Andrei Menzopol <[email protected]>
@github-actions
Copy link

github-actions bot commented Apr 19, 2022

PR #17502: Size comparison from 03ea72d to 095801d

Increases (10 builds for cc13x2_26x2, efr32, linux)
platform target config section 03ea72d 095801d change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 167400 167520 120 0.1
lock-ftd LP_CC2652R7 (read/write) 166064 166268 204 0.1
efr32 lighting-app BRD4161A+rpc (read/write) 149812 149816 4 0.0
window-app BRD4161A (read/write) 131116 131120 4 0.0
linux all-clusters-app debug (read only) 2709137 2709153 16 0.0
.text 2300818 2300866 48 0.0
chip-tool debug .text 9484805 9484821 16 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 10481260 10481292 32 0.0
.text 8851796 8851844 48 0.0
lock-app debug (read only) 2142921 2142937 16 0.0
.text 1796194 1796242 48 0.0
shell debug (read only) 2536065 2536081 16 0.0
.text 2158530 2158578 48 0.0
thermostat-no-ble arm64 .text 1985760 1985776 16 0.0
Decreases (40 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 03ea72d 095801d change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 685783 685663 -120 -0.0
.rodata 103623 103503 -120 -0.1
lock-ftd LP_CC2652R7 (read only) 678087 677883 -204 -0.0
.rodata 99319 99115 -204 -0.2
lock-mtd LP_CC2652R7 (read only) 626831 626627 -204 -0.0
.rodata 99199 98995 -204 -0.2
pump-app LP_CC2652R7 (read only) 649799 649647 -152 -0.0
.rodata 75719 75567 -152 -0.2
pump-controller-app LP_CC2652R7 (read only) 643143 642955 -188 -0.0
.rodata 79055 78867 -188 -0.2
cyw30739 light cyw930739m2evb_01 (read/write) 619302 619206 -96 -0.0
.app_xip_area 526060 525964 -96 -0.0
lock cyw930739m2evb_01 (read/write) 613994 613882 -112 -0.0
.app_xip_area 522232 522120 -112 -0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566390 566366 -24 -0.0
.app_xip_area 465040 465016 -24 -0.0
efr32 lighting-app BRD4161A (read only) 909172 908968 -204 -0.0
.text 909164 908960 -204 -0.0
BRD4161A+rpc (read only) 943548 943352 -196 -0.0
.text 943540 943344 -196 -0.0
window-app BRD4161A (read only) 846644 846472 -172 -0.0
.text 846636 846464 -172 -0.0
esp32 all-clusters-app c3devkit (read/write) 1398306 1398090 -216 -0.0
.flash.rodata 202344 202128 -216 -0.1
m5stack (read/write) 466024 465808 -216 -0.0
.flash.rodata 231884 231668 -216 -0.1
k32w light k32w061+release (read/write) 684852 684840 -12 -0.0
.text 599148 599136 -12 -0.0
lock k32w061+release (read/write) 726148 726044 -104 -0.0
.text 639852 639748 -104 -0.0
linux all-clusters-app debug .rodata 233669 233637 -32 -0.0
chip-tool debug (read only) 10863821 10863805 -16 -0.0
.rodata 544813 544781 -32 -0.0
chip-tool-no-interactive-ipv6only arm64 .rodata 518524 518508 -16 -0.0
lock-app debug .rodata 189977 189945 -32 -0.0
ota-provider-app debug (read only) 2052161 2052145 -16 -0.0
.text 1721234 1721218 -16 -0.0
shell debug .rodata 215794 215762 -32 -0.0
thermostat-no-ble arm64 .rodata 145484 145468 -16 -0.0
tv-app debug (read only) 2836353 2836337 -16 -0.0
.text 2438594 2438578 -16 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2481576 2481352 -224 -0.0
.text 1444148 1443924 -224 -0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2438888 2438696 -192 -0.0
.text 1401460 1401268 -192 -0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2410916 2410724 -192 -0.0
.text 1373516 1373324 -192 -0.0
shell CY8CPROTO_062_4343W+release (read/write) 2364888 2364696 -192 -0.0
.text 1327460 1327268 -192 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1165731 1165487 -244 -0.0
rodata 147780 147536 -244 -0.2
lighting-app nrf52840dk_nrf52840 (read/write) 1150435 1150227 -208 -0.0
rodata 122492 122284 -208 -0.2
nrf52840dk_nrf52840+rpc (read/write) 1114715 1114515 -200 -0.0
rodata 113596 113396 -200 -0.2
nrf52840dongle_nrf52840 (read/write) 1058495 1058315 -180 -0.0
rodata 92552 92372 -180 -0.2
nrf5340dk_nrf5340_cpuapp (read/write) 1052854 1052650 -204 -0.0
rodata 115244 115040 -204 -0.2
lock-app nrf52840dk_nrf52840 (read/write) 1088175 1087955 -220 -0.0
rodata 134424 134204 -220 -0.2
nrf5340dk_nrf5340_cpuapp (read/write) 990890 990674 -216 -0.0
rodata 127224 127008 -216 -0.2
pump-app nrf52840dk_nrf52840 (read/write) 1070615 1070407 -208 -0.0
rodata 117920 117712 -208 -0.2
pump-controller-app nrf52840dk_nrf52840 (read/write) 1052223 1052015 -208 -0.0
rodata 113928 113720 -208 -0.2
p6 all-clusters-app default (read/write) 2518648 2518440 -208 -0.0
.text 1476912 1476704 -208 -0.0
light-app default (read/write) 2417320 2417128 -192 -0.0
.text 1375584 1375392 -192 -0.0
lock-app default (read/write) 2421208 2421032 -176 -0.0
.text 1379472 1379296 -176 -0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802060 -176 -0.0
Full report (43 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 03ea72d 095801d change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 685783 685663 -120 -0.0
(read/write) 167400 167520 120 0.1
.bss 76168 76168 0 0.0
.data 3380 3380 0 0.0
.rodata 103623 103503 -120 -0.1
.text 581680 581680 0 0.0
lock-ftd LP_CC2652R7 (read only) 678087 677883 -204 -0.0
(read/write) 166064 166268 204 0.1
.bss 74192 74192 0 0.0
.data 3212 3212 0 0.0
.rodata 99319 99115 -204 -0.2
.text 578284 578284 0 0.0
lock-mtd LP_CC2652R7 (read only) 626831 626627 -204 -0.0
(read/write) 146980 146980 0 0.0
.bss 69912 69912 0 0.0
.data 3212 3212 0 0.0
.rodata 99199 98995 -204 -0.2
.text 527140 527140 0 0.0
pump-app LP_CC2652R7 (read only) 649799 649647 -152 -0.0
(read/write) 152492 152492 0 0.0
.bss 74624 74624 0 0.0
.data 3244 3244 0 0.0
.rodata 75719 75567 -152 -0.2
.text 573592 573592 0 0.0
pump-controller-app LP_CC2652R7 (read only) 643143 642955 -188 -0.0
(read/write) 152160 152160 0 0.0
.bss 74328 74328 0 0.0
.data 3208 3208 0 0.0
.rodata 79055 78867 -188 -0.2
.text 563600 563600 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619302 619206 -96 -0.0
.app_xip_area 526060 525964 -96 -0.0
.bss 75908 75908 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 613994 613882 -112 -0.0
.app_xip_area 522232 522120 -112 -0.0
.bss 74460 74460 0 0.0
.data 648 648 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566390 566366 -24 -0.0
.app_xip_area 465040 465016 -24 -0.0
.bss 83752 83752 0 0.0
.data 564 564 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909172 908968 -204 -0.0
(read/write) 133128 133128 0 0.0
.bss 131088 131088 0 0.0
.data 2040 2040 0 0.0
.text 909164 908960 -204 -0.0
BRD4161A+rpc (read only) 943548 943352 -196 -0.0
(read/write) 149812 149816 4 0.0
.bss 147568 147568 0 0.0
.data 2244 2244 0 0.0
.text 943540 943344 -196 -0.0
window-app BRD4161A (read only) 846644 846472 -172 -0.0
(read/write) 131116 131120 4 0.0
.bss 129168 129168 0 0.0
.data 1948 1948 0 0.0
.text 846636 846464 -172 -0.0
esp32 all-clusters-app c3devkit (read only) 981876 981876 0 0.0
(read/write) 1398306 1398090 -216 -0.0
.dram0.bss 62640 62640 0 0.0
.dram0.data 14412 14412 0 0.0
.flash.rodata 202344 202128 -216 -0.1
.flash.text 981876 981876 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1037047 1037047 0 0.0
(read/write) 466024 465808 -216 -0.0
.dram0.bss 68152 68152 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 231884 231668 -216 -0.1
.flash.text 1031663 1031663 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684852 684840 -12 -0.0
.bss 77912 77912 0 0.0
.data 1992 1992 0 0.0
.text 599148 599136 -12 -0.0
lock k32w061+release (read/write) 726148 726044 -104 -0.0
.bss 78544 78544 0 0.0
.data 1952 1952 0 0.0
.text 639852 639748 -104 -0.0
linux all-clusters-app debug (read only) 2709137 2709153 16 0.0
(read/write) 149568 149568 0 0.0
.bss 59968 59968 0 0.0
.data 1920 1920 0 0.0
.data.rel.ro 81624 81624 0 0.0
.dynamic 608 608 0 0.0
.got 4448 4448 0 0.0
.init 27 27 0 0.0
.init_array 984 984 0 0.0
.rodata 233669 233637 -32 -0.0
.text 2300818 2300866 48 0.0
bridge-app debug+rpc (read only) 1842109 1842109 0 0.0
(read/write) 91920 91920 0 0.0
.bss 44232 44232 0 0.0
.data 2912 2912 0 0.0
.data.rel.ro 39688 39688 0 0.0
.dynamic 592 592 0 0.0
.got 3920 3920 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 149433 149433 0 0.0
.text 1573749 1573749 0 0.0
chip-tool debug (read only) 10863821 10863805 -16 -0.0
(read/write) 373552 373552 0 0.0
.bss 22592 22592 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 343592 343592 0 0.0
.dynamic 624 624 0 0.0
.got 4936 4936 0 0.0
.init 27 27 0 0.0
.init_array 648 648 0 0.0
.rodata 544813 544781 -32 -0.0
.text 9484805 9484821 16 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 10481260 10481292 32 0.0
(read/write) 494929 494929 0 0.0
.bss 40865 40865 0 0.0
.data 1184 1184 0 0.0
.data.rel.ro 390744 390744 0 0.0
.dynamic 560 560 0 0.0
.got 58336 58336 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 518524 518508 -16 -0.0
.text 8851796 8851844 48 0.0
lighting-app debug+rpc (read only) 2319225 2319225 0 0.0
(read/write) 127984 127984 0 0.0
.bss 50016 50016 0 0.0
.data 1952 1952 0 0.0
.data.rel.ro 70312 70312 0 0.0
.dynamic 608 608 0 0.0
.got 4304 4304 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 183561 183561 0 0.0
.text 1969218 1969218 0 0.0
lock-app debug (read only) 2142921 2142937 16 0.0
(read/write) 120248 120248 0 0.0
.bss 47840 47840 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 65368 65368 0 0.0
.dynamic 592 592 0 0.0
.got 4248 4248 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 189977 189945 -32 -0.0
.text 1796194 1796242 48 0.0
ota-provider-app debug (read only) 2052161 2052145 -16 -0.0
(read/write) 115616 115616 0 0.0
.bss 48032 48032 0 0.0
.data 1640 1640 0 0.0
.data.rel.ro 60200 60200 0 0.0
.dynamic 608 608 0 0.0
.got 4448 4448 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 173931 173931 0 0.0
.text 1721234 1721218 -16 -0.0
ota-requestor-app debug (read only) 2082977 2082977 0 0.0
(read/write) 118424 118424 0 0.0
.bss 48704 48704 0 0.0
.data 1896 1896 0 0.0
.data.rel.ro 62248 62248 0 0.0
.dynamic 592 592 0 0.0
.got 4288 4288 0 0.0
.init 27 27 0 0.0
.init_array 656 656 0 0.0
.rodata 170252 170252 0 0.0
.text 1754242 1754242 0 0.0
shell debug (read only) 2536065 2536081 16 0.0
(read/write) 150312 150312 0 0.0
.bss 67368 67368 0 0.0
.data 1296 1296 0 0.0
.data.rel.ro 75944 75944 0 0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 215794 215762 -32 -0.0
.text 2158530 2158578 48 0.0
thermostat-no-ble arm64 (read only) 2360236 2360236 0 0.0
(read/write) 151137 151137 0 0.0
.bss 62945 62945 0 0.0
.data 1440 1440 0 0.0
.data.rel.ro 78984 78984 0 0.0
.dynamic 560 560 0 0.0
.got 4752 4752 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 145484 145468 -16 -0.0
.text 1985760 1985776 16 0.0
tv-app debug (read only) 2836353 2836337 -16 -0.0
(read/write) 253136 253136 0 0.0
.bss 165976 165976 0 0.0
.data 4448 4448 0 0.0
.data.rel.ro 76512 76512 0 0.0
.dynamic 592 592 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 215563 215563 0 0.0
.text 2438594 2438578 -16 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2481576 2481352 -224 -0.0
.bss 191120 191120 0 0.0
.data 5592 5592 0 0.0
.text 1444148 1443924 -224 -0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2438888 2438696 -192 -0.0
.bss 186436 186436 0 0.0
.data 5864 5864 0 0.0
.text 1401460 1401268 -192 -0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2410916 2410724 -192 -0.0
.bss 185252 185252 0 0.0
.data 5840 5840 0 0.0
.text 1373516 1373324 -192 -0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2364888 2364696 -192 -0.0
.bss 185000 185000 0 0.0
.data 5632 5632 0 0.0
.text 1327460 1327268 -192 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1165731 1165487 -244 -0.0
bss 136520 136520 0 0.0
rodata 147780 147536 -244 -0.2
text 802792 802792 0 0.0
lighting-app nrf52840dk_nrf52840 (read/write) 1150435 1150227 -208 -0.0
bss 140244 140244 0 0.0
rodata 122492 122284 -208 -0.2
text 809104 809104 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 1114715 1114515 -200 -0.0
bss 140480 140480 0 0.0
rodata 113596 113396 -200 -0.2
text 781576 781576 0 0.0
nrf52840dongle_nrf52840 (read/write) 1058495 1058315 -180 -0.0
bss 147436 147436 0 0.0
rodata 92552 92372 -180 -0.2
text 737688 737688 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 1052854 1052650 -204 -0.0
bss 136444 136444 0 0.0
rodata 115244 115040 -204 -0.2
text 719216 719216 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 1088175 1087955 -220 -0.0
bss 130244 130244 0 0.0
rodata 134424 134204 -220 -0.2
text 745060 745060 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 990890 990674 -216 -0.0
bss 126476 126476 0 0.0
rodata 127224 127008 -216 -0.2
text 655312 655312 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 1070615 1070407 -208 -0.0
bss 130196 130196 0 0.0
rodata 117920 117712 -208 -0.2
text 743848 743848 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 1052223 1052015 -208 -0.0
bss 129916 129916 0 0.0
rodata 113928 113720 -208 -0.2
text 729872 729872 0 0.0
p6 all-clusters-app default (read/write) 2518648 2518440 -208 -0.0
.bss 118624 118624 0 0.0
.data 2768 2768 0 0.0
.text 1476912 1476704 -208 -0.0
light-app default (read/write) 2417320 2417128 -192 -0.0
.bss 112104 112104 0 0.0
.data 2576 2576 0 0.0
.text 1375584 1375392 -192 -0.0
lock-app default (read/write) 2421208 2421032 -176 -0.0
.bss 111904 111904 0 0.0
.data 2536 2536 0 0.0
.text 1379472 1379296 -176 -0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802060 -176 -0.0
bss 69952 69952 0 0.0
noinit 40416 40416 0 0.0
text 570794 570794 0 0.0

@andrei-menzopol
Copy link
Contributor Author

I think eveything is ok now

VerifyOrDieWithMsg(mPendingWork == 0, DataManagement, "CommandHandler::Close() called with %zu unfinished async work items",
mPendingWork);
VerifyOrDieWithMsg(mPendingWork == 0, DataManagement, "CommandHandler::Close() called with %u unfinished async work items",
static_cast<unsigned int>(mPendingWork));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mPendingWork should just be an unsigned instead of size_t. It's a simple counter... Followup for making that change is fine. If that happens, the other logs that involve it in this file should be fixed too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks

@bzbarsky-apple bzbarsky-apple merged commit 57471cb into project-chip:master Apr 20, 2022
@andrei-menzopol andrei-menzopol deleted the format-specifiers branch April 26, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants