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 cmd: add exception command 2019-04-22 12:06:39 -04:00
mvebu SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
riscv cmd: add exception command 2019-04-22 12:06:39 -04:00
ti SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
x86 cmd: add exception command 2019-04-22 12:06:39 -04:00
.gitignore cmd: rework "license" command 2017-02-08 15:56:28 -05:00
ab_select.c cmd: Add 'ab_select' command 2019-07-24 13:16:29 -04:00
adc.c cmd: adc: Use the sub-command infrastructure 2019-01-15 15:28:54 -05:00
aes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armflash.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
avb.c cmd: avb: Fix compiler warnings 2019-08-07 15:31:04 -04:00
axi.c cmd: Add axi command 2018-08-11 09:16:08 +02:00
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 powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
bind.c cmd: Add bind/unbind commands to bind a device to a driver from the command line 2018-08-21 16:21:37 +02:00
binop.c cmd: binop: Use hex2bin 2019-05-21 07:52:34 +02:00
blk_common.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
blkcache.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
blob.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bmp.c cmd: bmp: Make integer-to-pointer cast platform, independent 2019-02-15 12:48:02 +01:00
boot.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootcount.c bootcount: Add bootcount command 2018-05-23 17:30:05 -04:00
bootefi.c efi_loader: fix function comments in cmd/bootefi.c 2019-07-16 22:17:19 +00:00
booti.c RISCV: image: Add booti support 2019-05-09 16:47:52 +08:00
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 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootz.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
btrfs.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
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 fs: cbfs: Add missing standard CBFS component types 2018-12-31 09:42:41 +08:00
clk.c cmd: clk: Handle ENODEV from clk_get_rate 2019-05-04 19:26:49 +02:00
cls.c cmd: add clear screen 'cls' command 2018-12-04 19:44:57 +01:00
config.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
conitrace.c cmd: add conitrace command 2018-09-25 21:49:18 -04:00
console.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cramfs.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cros_ec.c cros_ec: Update cros_ec_read_hash() to specify the image 2018-10-09 04:40:27 -06:00
dataflash_mmc_mux.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
date.c cmd: date: Do not overwrite arguments 2019-02-19 08:55:43 -05:00
demo.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu.c dfu: Avoid declaring unused variables and absent parameters 2019-04-21 10:26:51 +02:00
diag.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
disk.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
dm.c cmd: Move the "dm" command from test/dm/ to cmd/ 2018-12-15 11:49:19 -05:00
dtimg.c common: command: Rework the 'cmd is repeatable' logic 2019-01-15 15:28:54 -05:00
echo.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eeprom.c cosmetic: Update comment in cmd/eeprom.c 2019-07-19 20:14:50 +02:00
efi.c cmd: efi: Clarify calculation precedence for '&' and '?' 2018-08-21 00:04:24 +02:00
efidebug.c efi_loader: efidebug.c function documentation 2019-07-30 21:36:22 +02:00
elf.c elf: fix cache flushing in 'bootelf -p' command 2019-02-19 08:55:43 -05:00
ethsw.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
exit.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext2.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext4.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fastboot.c cmd: fastboot: handle watchdog while waiting for fastboot commands. 2019-03-16 13:29:43 +01:00
fat.c cmd: fat: add fatrm command 2018-09-23 21:55:30 +02:00
fdc.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
fdt.c cmd, fdt: add subcommand "get" to fdt header 2018-11-29 09:30:05 -07:00
fitupd.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
flash.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fpga.c cmd: fpga: correct typo, capitalize "Xilinx" 2019-07-30 10:20:06 +02:00
fpgad.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fs.c fs: do_load: pass device path for efi payload 2019-06-20 22:26:20 +00:00
fs_uuid.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fuse.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gettime.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gpio.c gpio: Use case-insentive matching on the GPIO name 2019-02-20 15:25:28 +08:00
gpt.c cmd: gpt: fix and tidy up help message 2019-05-02 18:17:50 +02:00
hash.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
help.c Drop linker-generated array creation when CONFIG_CMDLINE is disabled 2019-07-29 09:32:09 -04:00
host.c sandbox: Drop the deprecated 'sb' command 2018-11-26 08:25:35 -05:00
i2c.c cmd: i2c: Fix help output of i2c command. 2018-12-10 07:30:58 +01:00
ide.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ini.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
io.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
iotrace.c iotrace: fix behaviour when buffer is full 2018-06-18 14:02:04 -04:00
irq.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
itest.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
jffs2.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig Convert CONFIG_AUTOBOOT_MENU_SHOW to Kconfig 2019-08-02 11:19:14 -04:00
led.c cmd/led.c: fix typos in online help 2019-06-21 10:07:11 -04:00
legacy_led.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
license.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
load.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
log.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lzmadec.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mac.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile cmd: Add 'ab_select' command 2019-07-24 13:16:29 -04:00
md5sum.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
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 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mii.c cmd: mii: Add the standard 1000BASE-T registers 2019-07-15 13:32:25 -05:00
misc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mmc.c cmd: mmc: Make Mode: printout consistent 2019-05-04 19:26:49 +02:00
mp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mtd.c cmd: mtd: fix compilation warning for help when SYS_LONGHELP=n 2019-01-18 13:40:34 -05:00
mtdparts.c cmd: mtdparts: remove mandatory 'mtdparts=' prefix 2018-09-20 20:11:01 +05:30
nand.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
net.c net: Read bootfile from env on netboot_common() 2018-07-26 14:08:20 -05:00
nvedit.c env: register erase command 2019-07-18 11:31:25 -04:00
nvedit_efi.c cmd: env: add -nv option for UEFI non-volatile variable 2019-06-04 23:56:14 +02:00
nvme.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
onenand.c cmd/onenand.c: block align warning 2016-10-06 20:57:42 -04:00
osd.c cmd: Add osd commands 2018-09-28 18:27:33 +02:00
part.c cmd: part: Add 'number' sub-command 2019-07-24 13:16:29 -04:00
pci.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcmcia.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pinmux.c cmd: pinmux: Fix warnings when compiling with W=1 2019-07-12 11:50:57 +02:00
pmic.c pmic: Rewrite the pmic command to not only work with single byte transmission 2018-05-18 08:27:26 +02:00
pxe.c cmd: pxe: add board specific PXE default path 2019-05-05 08:48:50 -04:00
qfw.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
read.c cmd/read.c: Fix checking blk_dread return value 2017-08-20 09:54:30 -04:00
reginfo.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regulator.c cmd: add missing line breaks for pr_err() 2018-06-07 20:06:29 -04:00
reiser.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
remoteproc.c cmd: remoteproc: Allow list command to print the probed devices 2019-07-26 21:49:24 -04:00
rockusb.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
sata.c cmd: sata: add null pointer check for dev 2019-02-09 07:51:00 -05:00
sb.c spl: Add support for passing handoff info to U-Boot proper 2018-11-26 08:25:37 -05:00
scsi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
setexpr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sf.c dm: spi: Read default speed and mode values from DT 2019-04-12 11:54:50 +05:30
sha1sum.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
smccc.c arm64: Add SMC and HVC commands 2018-05-08 09:07:35 -04:00
sound.c dm: sound: Complete migration to driver model 2018-12-13 16:36:41 -07:00
source.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
spi.c Convert CONFIG_DEFAULT_SPI_* to Kconfig 2019-03-25 17:36:53 -04:00
spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
strings.c Remove the cmd_ prefix from command files 2016-01-25 10:39:43 -05:00
terminal.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
thordown.c cmd: thordown: Fix spelling of download. 2019-03-08 11:31:44 -05:00
time.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tpm-common.c tpm: Convert to use a device parameter 2018-11-29 09:30:06 -07:00
tpm-user-utils.h tpm: disociate TPMv1.x specific and generic code 2018-05-25 20:12:55 -04:00
tpm-v1.c tpm: Convert to use a device parameter 2018-11-29 09:30:06 -07:00
tpm-v2.c cmd: tpm-v2: use correct format code 2019-01-15 15:28:44 -05:00
tpm_test.c tpm: Convert to use a device parameter 2018-11-29 09:30:06 -07:00
trace.c trace: do not limit trace buffer to 2GiB 2019-07-10 16:52:58 -06:00
tsi148.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ubi.c cmd: ubi: remove unreachable code 2019-01-15 15:28:44 -05:00
ubifs.c cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount() 2018-09-28 20:22:32 -04:00
universe.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unzip.c cmd: unzip: use correct format code 2019-01-15 15:28:44 -05:00
usb.c usb: Make portspeed return a read-only string 2019-04-09 13:11:45 +02:00
usb_gadget_sdp.c usb: gadget: error out if g_dnl registration fails 2019-06-14 12:39:50 +02:00
usb_mass_storage.c usb: reload watchdog during ums command 2019-04-21 10:26:52 +02:00
version.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
virtio.c virtio: cmd: Add virtio command for virtio devices 2018-11-14 09:16:27 -08:00
w1.c w1: add command for onewire protocol 2018-09-28 20:22:36 -04:00
wdt.c cmd: add wdt command 2019-04-12 07:04:18 +02:00
wol.c net: Add new wol command - Wake on LAN 2018-07-02 14:14:20 -05:00
ximg.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
yaffs2.c Remove the cmd_ prefix from command files 2016-01-25 10:39:43 -05:00
zfs.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zip.c cmd: zip: use correct format code 2019-01-15 15:28:44 -05:00