zephyr/drivers
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
..
adc drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
audio
bbram
bluetooth
cache
can drivers: can: m_can variant for STM32H7 2022-01-19 16:07:54 -05:00
clock_control soc: esp32c3: fix cpu vendor name 2022-01-20 13:33:29 -05:00
console
counter
crypto
dac drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
debug
disk
display drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
dma drivers: dma: mcux_lpc: fix variable name clash 2022-01-20 07:41:26 -06:00
ec_host_cmd_periph
edac
eeprom
entropy
espi
ethernet drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
flash drivers: flash: Eliminate warning when compiling with GCC 2022-01-20 13:42:35 -06:00
fpga
gpio drivers: gpio: Fix NO_PINT_INT 2022-01-20 13:40:18 -06:00
hwinfo
i2c
i2s drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
ieee802154 drivers: ieee802154_nrf5: fix condition for mac keys and frame counter 2022-01-19 14:16:23 -05:00
interrupt_controller drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
ipm
kscan
led
led_strip
lora
mbox
mdio
memc
misc drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
mm
modem
net
neural_net
pcie pcie: controller: add non-recursive pcie busses enumeration 2022-01-19 13:37:36 -05:00
peci
pinctrl drivers: pinctrl: pfc_rcar: fix bank and bit parsing 2022-01-19 16:06:46 -05:00
pinmux
pm_cpu_ops
power_domain drivers: power_domain: gpio controlled domain 2022-01-19 13:35:32 -05:00
ps2
ptp_clock
pwm
regulator
sensor drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
serial drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
spi drivers: remove redundant data/config casts 2022-01-19 18:16:02 +01:00
syscon
timer timer: Add tickless support for the MIPS CP0 timer 2022-01-19 13:48:21 -05:00
usb
video
virtualization
watchdog
wifi
xen
CMakeLists.txt drivers: power_domain: gpio controlled domain 2022-01-19 13:35:32 -05:00
Kconfig drivers: power_domain: gpio controlled domain 2022-01-19 13:35:32 -05:00