summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-05-25 18:11:04 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-05-25 18:11:43 +0200
commit56762ffb9b7eb15105d3f0a7184d6b28e8a5ab62 (patch)
treefac391c4d3ebea2f839077efea817edefc907212
parent0c705593eb075c08e10fd86e3cb808e24e147c23 (diff)
downloadexynos-gpio-tool-56762ffb9b7eb15105d3f0a7184d6b28e8a5ab62.tar.gz
exynos-gpio-tool-56762ffb9b7eb15105d3f0a7184d6b28e8a5ab62.tar.bz2
exynos-gpio-tool-56762ffb9b7eb15105d3f0a7184d6b28e8a5ab62.zip
Fix remaining format issues
Without that fix, on GNU/Linux we have: exynos4412_gpios.c: In function ‘dump_gpio_infos’: exynos4412_gpios.c:92:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘uint32_t *’ {aka ‘unsigned int *’} [-Wformat=] 92 | printf("%s:" | ^~~~~ ...... 104 | addr, | ~~~~ | | | uint32_t * {aka unsigned int *} exynos4412_gpios.c:97:21: note: format string is defined here 97 | " addr=0x%x);" | ~^ | | | unsigned int | %n exynos4412_gpios.c: In function ‘gpio_get_direction’: exynos4412_gpios.c:148:10: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘uint32_t *’ {aka ‘unsigned int *’} [-Wformat=] 148 | printf("%s:" | ^~~~~ ...... 160 | addr, | ~~~~ | | | uint32_t * {aka unsigned int *} exynos4412_gpios.c:153:20: note: format string is defined here 153 | " addr=0x%x);" | ~^ | | | unsigned int | %n exynos4412_gpios.c: In function ‘gpio_get_output_value’: exynos4412_gpios.c:205:10: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘uint32_t *’ {aka ‘unsigned int *’} [-Wformat=] 205 | printf("%s:" | ^~~~~ ...... 217 | addr, | ~~~~ | | | uint32_t * {aka unsigned int *} exynos4412_gpios.c:210:20: note: format string is defined here 210 | " addr=0x%x);" | ~^ | | | unsigned int | %n Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--exynos4412_gpios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exynos4412_gpios.c b/exynos4412_gpios.c
index 7d29add..69a4d76 100644
--- a/exynos4412_gpios.c
+++ b/exynos4412_gpios.c
@@ -94,7 +94,7 @@ int dump_gpio_infos(char *devmem, int fd, size_t page_size, char *bank,
" bank=%s,"
" gpio_offset=%d,"
" gpio_register_name=%s,"
- " addr=0x%x);"
+ " addr=%p);"
" failed with with error %d: %s\n",
__func__,
debug,
@@ -150,7 +150,7 @@ int gpio_get_direction(char *devmem, int fd, size_t page_size, char *bank,
" bank=%s,"
" gpio_offset=%d,"
" gpio_register_name=%s,"
- " addr=0x%x);"
+ " addr=%p);"
" failed with with error %d: %s\n",
__func__,
debug,
@@ -207,7 +207,7 @@ int gpio_get_output_value(char *devmem, int fd, size_t page_size, char *bank,
" bank=%s,"
" gpio_offset=%d,"
" gpio_register_name=%s,"
- " addr=0x%x);"
+ " addr=%p);"
" failed with with error %d: %s\n",
__func__,
debug,