aboutsummaryrefslogtreecommitdiff
path: root/includes/dt_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/dt_util.h')
-rw-r--r--includes/dt_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/dt_util.h b/includes/dt_util.h
index bf56c293..4bd72133 100644
--- a/includes/dt_util.h
+++ b/includes/dt_util.h
@@ -72,4 +72,10 @@ char *dtr_maps_info(dtr *); /* returns hardinfo shell section */
const char *dtr_find_device_tree_root(void);
+#define sp_sep(STR) (strlen(STR) ? " " : "")
+/* appends an element to a string, adding a space if
+ * the string is not empty.
+ * ex: ret = appf(ret, "%s=%s\n", name, value); */
+char *appf(char *src, char *fmt, ...);
+
#endif