1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 01:32:47 +02:00
Files
u-boot-megous/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
..
2019-04-22 12:06:39 -04:00
2019-04-22 12:06:39 -04:00
2019-04-22 12:06:39 -04:00
2019-07-24 13:16:29 -04:00
2019-08-07 15:31:04 -04:00
2019-07-30 12:57:01 +02:00
2019-05-21 07:52:34 +02:00
2019-05-09 16:47:52 +08:00
2018-12-04 19:44:57 +01:00
2019-02-19 08:55:43 -05:00
2019-05-02 18:17:50 +02:00
2019-06-21 10:07:11 -04:00
2019-07-24 13:16:29 -04:00
2019-05-04 19:26:49 +02:00
2019-07-18 11:31:25 -04:00
2019-07-24 13:16:29 -04:00
2019-03-25 17:36:53 -04:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2019-04-12 07:04:18 +02:00
2019-01-15 15:28:44 -05:00