Files
u-boot/drivers
Alexander Dahl 27fb2e25e5 fpga: virtex2: Fix printf format string warnings
Warning appears if built with FPGA_DEBUG defined:

  CC      drivers/fpga/virtex2.o
/mnt/data/adahl/src/u-boot/drivers/fpga/virtex2.c: In function ‘virtex2_ssm_load’:
/mnt/data/adahl/src/u-boot/drivers/fpga/virtex2.c:333:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
    PRINTF("%s:%d:done went active early, bytecount = %d\n",
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           __func__, __LINE__, bytecount);
                               ~~~~~~~~~
/mnt/data/adahl/src/u-boot/drivers/fpga/virtex2.c:25:37: note: in definition of macro ‘PRINTF’
 #define PRINTF(fmt, args...) printf(fmt, ##args)
                                     ^~~
/mnt/data/adahl/src/u-boot/drivers/fpga/virtex2.c: In function ‘virtex2_ss_load’:
/mnt/data/adahl/src/u-boot/drivers/fpga/virtex2.c:468:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
     PRINTF("%s:%d:done went active early, bytecount = %d\n",
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            __func__, __LINE__, bytecount);
                                ~~~~~~~~~
/mnt/data/adahl/src/u-boot/drivers/fpga/virtex2.c:25:37: note: in definition of macro ‘PRINTF’
 #define PRINTF(fmt, args...) printf(fmt, ##args)
                                     ^~~

Signed-off-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20221007122003.11239-5-ada@thorsis.com
2022-10-10 12:28:08 +02:00
..
2022-04-25 09:25:00 +02:00
2022-09-25 08:30:05 -06:00
2022-09-25 08:30:05 -06:00
2022-09-29 16:11:31 -04:00
2021-10-05 08:50:15 -04:00
2022-09-16 11:05:16 -04:00
2022-08-04 16:18:47 -04:00
2022-10-03 15:39:46 -04:00
2022-01-13 07:57:49 -05:00
2022-09-29 16:11:31 -04:00
2022-01-13 07:57:49 -05:00
2022-10-05 11:36:54 +02:00
2022-09-19 16:07:12 -04:00
2022-09-29 16:11:31 -04:00
2022-09-19 16:07:12 -04:00
2022-09-19 16:07:12 -04:00
2022-09-16 11:05:16 -04:00
2022-09-03 16:59:05 +03:00
2022-05-03 21:39:22 +02:00
2022-10-03 15:39:46 -04:00
2022-09-25 08:30:05 -06:00
2021-10-01 21:08:18 -04:00
2022-10-03 15:39:46 -04:00
2022-09-25 08:30:05 -06:00
2022-09-16 11:05:16 -04:00