summaryrefslogtreecommitdiff
path: root/src/basic/strv.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-03-19 23:32:43 +0900
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-20 09:32:09 +0100
commit00546c18fd2555e6140f17b307c45ac487e0c5ad (patch)
tree53c749a093292b30cc253706e888b9c613441a65 /src/basic/strv.h
parent7af15421e37db875a1577dd092ab55881848bcf1 (diff)
downloadsystemd-00546c18fd2555e6140f17b307c45ac487e0c5ad.tar.gz
strv: introduce strv_print_full()
Diffstat (limited to 'src/basic/strv.h')
-rw-r--r--src/basic/strv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/basic/strv.h b/src/basic/strv.h
index 49e1c3d8b1..419cda1ee3 100644
--- a/src/basic/strv.h
+++ b/src/basic/strv.h
@@ -149,7 +149,10 @@ bool strv_overlap(char * const *a, char * const *b) _pure_;
_STRV_FOREACH_PAIR(x, y, l, UNIQ_T(i, UNIQ))
char** strv_sort(char **l);
-void strv_print(char * const *l);
+void strv_print_full(char * const *l, const char *prefix);
+static inline void strv_print(char * const *l) {
+ strv_print_full(l, NULL);
+}
#define strv_from_stdarg_alloca(first) \
({ \