2023-03-07 13:02:13 +01:00
|
|
|
https://bird.network.cz/pipermail/bird-users/2023-March/016743.html
|
2023-03-06 20:12:10 +01:00
|
|
|
See-also: https://bugs.gentoo.org/836713
|
2023-03-07 13:02:13 +01:00
|
|
|
Signed-off-by: Petr Vaněk <arkamar at atlas.cz>
|
2023-03-06 20:12:10 +01:00
|
|
|
---
|
2023-03-07 13:02:13 +01:00
|
|
|
lib/printf_test.c | 7 +++++--
|
|
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
2023-03-06 20:12:10 +01:00
|
|
|
|
|
|
|
diff --git a/lib/printf_test.c b/lib/printf_test.c
|
2023-03-07 13:02:13 +01:00
|
|
|
index 47ea905d..ca278975 100644
|
2023-03-06 20:12:10 +01:00
|
|
|
--- a/lib/printf_test.c
|
|
|
|
+++ b/lib/printf_test.c
|
|
|
|
@@ -32,11 +32,14 @@ t_simple(void)
|
|
|
|
BSPRINTF(1, "@", buf, "@", 64);
|
|
|
|
BSPRINTF(1, "\xff", buf, "%c", 0xff);
|
2023-03-07 13:02:13 +01:00
|
|
|
|
|
|
|
+ const char * io_error_str = strerror(EIO);
|
2023-03-06 20:12:10 +01:00
|
|
|
+ const int io_error_len = strlen(io_error_str);
|
|
|
|
+
|
2023-03-07 13:02:13 +01:00
|
|
|
errno = 5;
|
|
|
|
- BSPRINTF(18, "Input/output error", buf, "%m");
|
2023-03-06 20:12:10 +01:00
|
|
|
+ BSPRINTF(io_error_len, io_error_str, buf, "%m");
|
|
|
|
errno = 0;
|
2023-03-07 13:02:13 +01:00
|
|
|
|
2023-03-06 20:12:10 +01:00
|
|
|
- BSPRINTF(18, "Input/output error", buf, "%M", 5);
|
2023-03-07 13:02:13 +01:00
|
|
|
+ BSPRINTF(io_error_len, io_error_str, buf, "%M", 5);
|
|
|
|
|
2023-03-06 20:12:10 +01:00
|
|
|
BSPRINTF(11, "TeSt%StRiNg", buf, "%s", "TeSt%StRiNg");
|
|
|
|
|
2023-03-07 13:02:13 +01:00
|
|
|
--
|
|
|
|
2.39.2
|