mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
6d5611af28
Update uboot-at91 to linux4sam-2022.04. As linux4sam-2022.04 is based on U-Boot v2022.01 which contains commit 93b196532254 ("Makefile: Only build dtc if needed") removed also the DTC variable passed to MAKE to force the compilation of DTC. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From 3b05406c02070df3e7f19399d81ebd35ed6deae5 Mon Sep 17 00:00:00 2001
|
|
From: Claudiu Beznea <claudiu.beznea@microchip.com>
|
|
Date: Tue, 12 Oct 2021 17:43:28 +0300
|
|
Subject: [PATCH] fix -Wformat-security
|
|
|
|
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
|
|
---
|
|
cmd/panic.c | 2 +-
|
|
cmd/version.c | 2 +-
|
|
drivers/pinctrl/pinctrl-uclass.c | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/cmd/panic.c
|
|
+++ b/cmd/panic.c
|
|
@@ -11,7 +11,7 @@ static int do_panic(struct cmd_tbl *cmdt
|
|
{
|
|
char *text = (argc < 2) ? "" : argv[1];
|
|
|
|
- panic(text);
|
|
+ panic("%s\n", text);
|
|
|
|
return CMD_RET_SUCCESS;
|
|
}
|
|
--- a/cmd/version.c
|
|
+++ b/cmd/version.c
|
|
@@ -24,7 +24,7 @@ static int do_version(struct cmd_tbl *cm
|
|
{
|
|
char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
|
|
|
|
- printf(display_options_get_banner(false, buf, sizeof(buf)));
|
|
+ printf("%s", display_options_get_banner(false, buf, sizeof(buf)));
|
|
#ifdef CC_VERSION_STRING
|
|
puts(CC_VERSION_STRING "\n");
|
|
#endif
|
|
--- a/drivers/pinctrl/pinctrl-uclass.c
|
|
+++ b/drivers/pinctrl/pinctrl-uclass.c
|
|
@@ -375,7 +375,7 @@ int pinctrl_get_pin_name(struct udevice
|
|
if (!ops->get_pin_name)
|
|
return -ENOSYS;
|
|
|
|
- snprintf(buf, size, ops->get_pin_name(dev, selector));
|
|
+ snprintf(buf, size, "%s", ops->get_pin_name(dev, selector));
|
|
|
|
return 0;
|
|
}
|