u-boot/cmd
Sam Protsenko 97f3c09706 cmd: avb: Fix compiler warnings
When building U-Boot with AVB enabled, compiler shows next warnings:

    cmd/avb.c: In function 'do_avb_read_pvalue':
    cmd/avb.c:371:18: warning: format '%ld' expects argument of type
                      'long int', but argument 2 has type 'size_t'
                      {aka 'unsigned int'} [-Wformat=]
       printf("Read %ld bytes, value = %s\n", bytes_read,
                    ~~^                       ~~~~~~~~~~
                    %d

    cmd/avb.c: In function 'do_avb_write_pvalue':
    cmd/avb.c:404:19: warning: format '%ld' expects argument of type
                      'long int', but argument 2 has type '__kernel_size_t'
                      {aka 'unsigned int'} [-Wformat=]
       printf("Wrote %ld bytes\n", strlen(value) + 1);
                     ~~^           ~~~~~~~~~~~~~~~~~
                     %d

Fix those by using "%zu" specified.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
2019-08-07 15:31:04 -04:00
..
arm
mvebu
riscv
ti
x86
.gitignore
ab_select.c cmd: Add 'ab_select' command 2019-07-24 13:16:29 -04:00
adc.c
aes.c
armflash.c
avb.c cmd: avb: Fix compiler warnings 2019-08-07 15:31:04 -04:00
axi.c
bcb.c cmd: bcb: Apply non-functional refinements 2019-07-24 13:16:29 -04:00
bdinfo.c bdinfo: show fb base with DM_VIDEO 2019-07-30 12:57:01 +02:00
bedbug.c
bind.c
binop.c
blk_common.c
blkcache.c
blob.c
bmp.c
boot.c
bootcount.c
bootefi.c efi_loader: fix function comments in cmd/bootefi.c 2019-07-16 22:17:19 +00:00
booti.c
bootm.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
bootmenu.c autoboot: Rename CONFIG_MENU_SHOW to include AUTOBOOT 2019-08-02 11:19:14 -04:00
bootstage.c
bootz.c
btrfs.c
cache.c Add validation for icache/dcache arguments - arguments different from off/on/flush are currently silently ignored. 2019-07-29 09:32:13 -04:00
cbfs.c
clk.c
cls.c
config.c
conitrace.c
console.c
cpu.c
cramfs.c
cros_ec.c
dataflash_mmc_mux.c
date.c
demo.c
dfu.c
diag.c
disk.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
dm.c
dtimg.c
echo.c
eeprom.c cosmetic: Update comment in cmd/eeprom.c 2019-07-19 20:14:50 +02:00
efi.c
efidebug.c efi_loader: efidebug.c function documentation 2019-07-30 21:36:22 +02:00
elf.c
ethsw.c
exit.c
ext2.c
ext4.c
fastboot.c
fat.c
fdc.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
fdt.c
fitupd.c
flash.c
fpga.c cmd: fpga: correct typo, capitalize "Xilinx" 2019-07-30 10:20:06 +02:00
fpgad.c
fs.c
fs_uuid.c
fuse.c
gettime.c
gpio.c
gpt.c
hash.c
help.c Drop linker-generated array creation when CONFIG_CMDLINE is disabled 2019-07-29 09:32:09 -04:00
host.c
i2c.c
ide.c
ini.c
io.c
iotrace.c
irq.c
itest.c
jffs2.c
Kconfig Convert CONFIG_AUTOBOOT_MENU_SHOW to Kconfig 2019-08-02 11:19:14 -04:00
led.c
legacy_led.c
license.c
load.c
log.c
lzmadec.c
mac.c
Makefile cmd: Add 'ab_select' command 2019-07-24 13:16:29 -04:00
md5sum.c
mdio.c cmd: mdio: prevent data abort when no mdio bus is found 2019-07-18 16:37:13 -05:00
mem.c cmd: mem: Add a command to fill the memory with random data 2019-07-18 11:31:27 -04:00
mfsl.c
mii.c cmd: mii: Add the standard 1000BASE-T registers 2019-07-15 13:32:25 -05:00
misc.c
mmc.c
mp.c
mtd.c
mtdparts.c
nand.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
net.c
nvedit.c env: register erase command 2019-07-18 11:31:25 -04:00
nvedit_efi.c
nvme.c
onenand.c
osd.c
part.c cmd: part: Add 'number' sub-command 2019-07-24 13:16:29 -04:00
pci.c
pcmcia.c
pinmux.c cmd: pinmux: Fix warnings when compiling with W=1 2019-07-12 11:50:57 +02:00
pmic.c
pxe.c
qfw.c
read.c
reginfo.c
regulator.c
reiser.c
remoteproc.c cmd: remoteproc: Allow list command to print the probed devices 2019-07-26 21:49:24 -04:00
rockusb.c
sata.c
sb.c
scsi.c
setexpr.c
sf.c
sha1sum.c
smccc.c
sound.c
source.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
spi.c
spl.c
strings.c
terminal.c
test.c
thordown.c
time.c
tpm-common.c
tpm-user-utils.h
tpm-v1.c
tpm-v2.c
tpm_test.c
trace.c
tsi148.c
ubi.c
ubifs.c
universe.c
unzip.c
usb.c
usb_gadget_sdp.c
usb_mass_storage.c
version.c
virtio.c
w1.c
wdt.c
wol.c
ximg.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
yaffs2.c
zfs.c
zip.c