From: Michael Tremer Date: Fri, 3 Apr 2026 14:00:43 +0000 (+0000) Subject: graphs: Add a macro to add headlines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2157fbee76ccd378298c3ebbd5dc34f71ec5f1f3;p=telemetry.git graphs: Add a macro to add headlines Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graphs/graph.h b/src/daemon/graphs/graph.h index b3268bf..cd8d254 100644 --- a/src/daemon/graphs/graph.h +++ b/src/daemon/graphs/graph.h @@ -190,6 +190,7 @@ static inline int __DRAW(td_args* args, const char* what, const char* field, // Add something to the legend of the graph #define PRINT_EMPTY_LINE(args) SCRIPT(args, "COMMENT: \\n") +#define PRINT_HEADLINE(args, headline) SCRIPT(args, "COMMENT:%s\\n", headline) #define PRINT_HEADER(args, label) SCRIPT(args, "COMMENT:" COLUMN, label) #define PRINT_LABEL(args, label) SCRIPT(args, "COMMENT: %-31s", label) #define PRINT_EMPTY_LABEL(args) SCRIPT(args, "COMMENT: ")