zephyr/drivers/flash
Milind Paranjpe 25e6803705 drivers: flash: Eliminate warning when compiling with GCC
Address the issue mentioned in zephyrproject-rtos#7412

Using printf() with "%x" to print an off_t value produces the
following warning:

format '%x' expects 'unsigned int', argument has type 'long int'
  228 |  LOG_DBG("Erasing sector at 0x%08x", offset);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~
      |                                      |
      |                                      off_t {aka long int}

In newlib off_t is long. Even though both int and long are 4 bytes wide
in the architecture in use, GCC wants to see "%lx" to printf() a long.
Using "%"PRIx32 still produces the same warning because PRIx32
(from inttypes.h) still expands to simply an "x" and not "lx".

PR zephyrproject-rtos#40004 has solved this by casting offset to
ssize_t. The same solution is emulated here.

Signed-off-by: Milind Paranjpe <milind@whisper.ai>
2022-01-20 13:42:35 -06:00
..
CMakeLists.txt drivers: flash: the chosen_flash variable was not read properly 2021-11-02 13:23:56 +01:00
Kconfig drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
Kconfig.at45
Kconfig.b91
Kconfig.esp32 soc: riscv: esp32c3: drivers: flash: add support 2021-10-28 06:47:21 -04:00
Kconfig.gecko
Kconfig.it8xxx2
Kconfig.lpc
Kconfig.mcux drivers: flash: added flexspi hyperflash. 2021-10-19 16:42:12 -05:00
Kconfig.nios2_qspi
Kconfig.nor
Kconfig.nordic_qspi_nor drivers/flash/nrf_qspi_nor: Default write_from_nvmc buffer size to 4 2021-12-20 17:52:00 +01:00
Kconfig.nrf
Kconfig.rv32m1
Kconfig.sam drivers: flash: Kconfig.sam: -depends on and +dfu sample exclude 2021-09-02 13:23:47 -04:00
Kconfig.sam0
Kconfig.simulator drivers/flash/flash_simulator: allow to disable statistic 2021-09-01 12:10:19 +02:00
Kconfig.stm32 drivers/flash: stm32l5: Adding flash driver for stm32l5x series 2021-08-04 10:26:06 -05:00
Kconfig.stm32_qspi kconfig: stm32: Select CONFIG_USE_STM32_HAL_MDMA when QSPI is used 2022-01-04 20:47:29 -05:00
flash_esp32.c drivers: flash: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
flash_gecko.c drivers: flash: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
flash_handlers.c
flash_ite_it8xxx2.c drivers: flash: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
flash_mcux_flexspi_hyperflash.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
flash_mcux_flexspi_mx25um51345g.c drivers: flash: Eliminate warning when compiling with GCC 2022-01-20 13:42:35 -06:00
flash_mcux_flexspi_nor.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
flash_page_layout.c
flash_priv.h
flash_sam.c drivers: fix style issues 2022-01-19 18:16:02 +01:00
flash_sam0.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
flash_shell.c
flash_simulator.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
flash_stm32.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
flash_stm32.h drivers: flash: stm32: wait for CFGBSY & BSY2 in wait_flash_idle 2021-11-17 11:06:59 -05:00
flash_stm32_qspi.c drivers: flash: drop DEV_DATA/DEV_CFG usage 2022-01-19 18:16:02 +01:00
flash_stm32_v1.c
flash_stm32f2x.c
flash_stm32f4x.c
flash_stm32f7x.c
flash_stm32g0x.c drivers: flash: stm32g0: dual bank handling 2021-11-17 11:06:59 -05:00
flash_stm32g4x.c
flash_stm32h7x.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
flash_stm32l4x.c
flash_stm32l5x.c drivers/flash: stm32l5: Adding flash driver for stm32l5x series 2021-08-04 10:26:06 -05:00
flash_stm32wbx.c
jesd216.c
jesd216.h
nrf_qspi_nor.c pm: s/PM_DEVICE_(DT_(INST))_REF/PM_DEVICE_(DT_(INST))_GET 2022-01-18 12:14:06 -05:00
soc_flash_b91.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
soc_flash_lpc.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
soc_flash_mcux.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
soc_flash_nios2_qspi.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
soc_flash_nrf.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
soc_flash_nrf.h
soc_flash_nrf_ticker.c Bluetooth: Controller: Propagate ticks_drift in the ticker callback 2021-09-17 14:30:07 +02:00
soc_flash_rv32m1.c drivers: flash: Refactor drivers to use shared init priority 2022-01-17 11:51:09 -05:00
spi_flash_at45.c drivers: flash: drop get_dev_data/get_dev_config usage 2022-01-19 18:16:02 +01:00
spi_nor.c drivers: flash: spi_nor: use instance based macros 2021-12-17 17:30:06 +01:00
spi_nor.h qspi: stm32: Add support for 4 IO read and program (4READ/4PP) 2022-01-04 20:47:29 -05:00