Wind River Support Network

HomeDefectsLIN10-6898
Fixed

LIN10-6898 : warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32 {aka unsigned int}' [-Wformat=]

Created: Jan 2, 2020    Updated: Mar 23, 2020
Resolved Date: Feb 25, 2020
Found In Version: 10.17.41.19
Fix Version: 10.17.41.20
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Kernel

Description

...
 CC fs/binfmt_script.o
 CC fs/aufs/loop.o
 CC fs/binfmt_elf.o
 /ala-lpggp51/fast_build/100/LTS/build_dir/12240035-build_sanity_without_dl_layer_CGP/nxp-ls10xx-standard-glibc-cgl-OE/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/fs/btrfs/tree-checker.c: In function 'check_dir_item':
 /ala-lpggp51/fast_build/100/LTS/build_dir/12240035-build_sanity_without_dl_layer_CGP/nxp-ls10xx-standard-glibc-cgl-OE/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/fs/btrfs/tree-checker.c:276:50: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32

{aka unsigned int}

' [-Wformat=]
 "dir item header crosses item boundary, have %lu boundary %u",
 ~~^
 %u
 cur + sizeof(*di), item_size);
 ~~~~~~~~~~~~~~~~~
 CC fs/proc/devices.o
 CC fs/nfs/nfs3super.o

Steps to Reproduce

1. Create project on the DVD installed with windshare
  $ wrlinux-10/setup.sh  --machines=nxp-ls10xx --all-layers --distros=wrlinux-cgl  --user=$user --password=$passwd
  $source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
  $echo INHERIT += \"rm_work\" >> conf/local.conf
  $echo RM_OLD_IMAGE = \"1\" >> conf/local.conf
  $echo BB_NO_NETWORK = \'0\' >> conf/local.conf
2. Build project
  $ bitbake -k  wrlinux-image-glibc-cgl
3. Check the kernel build log
Live chat
Online