Skip to content

Commit 8738546

Browse files
committed
version: add version banner
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 34a2cd0 commit 8738546

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

include/fluent-bit/flb_version.h.in

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,28 @@
4040
#define FLB_VERSION_STR "@FLB_VERSION_STR@"
4141
#define FLB_GIT_HASH "@FLB_GIT_HASH@"
4242

43+
static unsigned char tree_txt[] = {
44+
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5c, 0x20, 0x7c, 0x7c, 0x20,
45+
0x2f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x2a,
46+
0x2a, 0x20, 0x3d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
47+
0x2f, 0x5f, 0x5f, 0x5c, 0x20, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
48+
0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x20, 0x20, 0x20, 0x20,
49+
0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x20,
50+
0x20, 0x20, 0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
51+
0x5f, 0x5c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f,
52+
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x20, 0x20, 0x20, 0x2f,
53+
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f,
54+
0x5c, 0x0a, 0x20, 0x20, 0x2f, 0x5f, 0x5f, 0x46, 0x6c, 0x75, 0x65, 0x6e,
55+
0x74, 0x20, 0x42, 0x69, 0x74, 0x5f, 0x5f, 0x5c, 0x0a, 0x20, 0x2f, 0x5f,
56+
0x5f, 0x7c, 0x5f, 0x5f, 0x76, 0x32, 0x2e, 0x32, 0x2e, 0x31, 0x5f, 0x7c,
57+
0x5f, 0x5f, 0x5f, 0x5c, 0x0a, 0x2f, 0x5f, 0x5f, 0x5f, 0x5c, 0x5f, 0x5f,
58+
0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x2f, 0x5f, 0x5f, 0x5f, 0x5f,
59+
0x5c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7c, 0x7c,
60+
0x7c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7c, 0x7c,
61+
0x7c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3d, 0x3d, 0x3d,
62+
0x3d, 0x3d, 0x0a, 0x0a, 0x00,
63+
};
64+
4365
static inline void flb_version()
4466
{
4567
#ifdef FLB_NIGHTLY_BUILD
@@ -85,6 +107,7 @@ static inline void flb_version_banner()
85107
fprintf(stderr, "* Fluent Bit is a CNCF sub-project under the "
86108
"umbrella of Fluentd\n");
87109
fprintf(stderr, "* https://fluentbit.io\n\n");
110+
fprintf(stderr, "%s", tree_txt);
88111
}
89112

90113
#endif

0 commit comments

Comments
 (0)