Add %S as a new format code to print arbitrary character strings.
modified libpkg/pkg_printf.3
@@ -553,6 +553,9 @@ Option name [string]
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_printf.c
@@ -96,7 +96,9 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -453,6 +455,15 @@ static const struct pkg_printf_fmt fmt[] = {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1267,6 +1278,17 @@ format_option_value(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg_printf.h
@@ -105,6 +105,7 @@ typedef enum _fmt_code_t {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -184,6 +185,7 @@ _static struct sbuf *format_message(struct sbuf *, const void *, struct percent_
|
|
|
|
|
|
| + | |
|
|
|
|
|