summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-08-01 08:47:50 -0600
committerTom Rini <[email protected]>2025-08-01 08:47:50 -0600
commit231b40724dee2915acfff5e0f5c50feff31cd637 (patch)
tree6626291977868f30252cc772aa9736fab80b6d8d /lib
parentf5e968a28e7cdc2c4365f5a382e02f074ee03fac (diff)
parent5a4bfe38775ad5febf9b9fc58f0432f786a3d5d5 (diff)
Merge tag 'net-20250801' of https://source.denx.de/u-boot/custodians/u-boot-net
Pull request for net-20250801 net: - Support overriding Auto Negotiation timeout with env variable 'phy_aneg_timeout' - Add missing virtqueue_kick() in free_pkt() - Remove bcm281xx ethernet driver - Tighten some network driver dependencies in Kconfig - Add <cpu_func.h> to some platforms - Fix a debug print in ftgmac100.cA - Add parentheses around PSEUDO_HDR_SIZE net-lwip: - Fix build error with CONFIG_LWIP_DEBUG=y - Remove eth_init() from net_init() as it is called later - Simplify net_lwip_eth_start() net-legacy: - wget: Fix comparison of unsigned variable - Incorrect macro used (TCP_0_NOP instead of TCP_1_NOP)
Diffstat (limited to 'lib')
-rw-r--r--lib/lwip/u-boot/arch/cc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/lwip/u-boot/arch/cc.h b/lib/lwip/u-boot/arch/cc.h
index f91127ac565..04ab94d6b70 100644
--- a/lib/lwip/u-boot/arch/cc.h
+++ b/lib/lwip/u-boot/arch/cc.h
@@ -47,4 +47,13 @@
void sntp_set_system_time(uint32_t sec);
#define SNTP_SET_SYSTEM_TIME(sec) sntp_set_system_time(sec)
+static inline const char *sntp_format_time(time_t t)
+{
+ static char buf[29]; /* "(time_t)" + 20 digits max + \0 */
+
+ snprintf(buf, sizeof(buf), "(time_t)%llu", t);
+ return buf;
+}
+
+#define sntp_format_time sntp_format_time
#endif /* LWIP_ARCH_CC_H */