From e80ae9ea8ed04c82c151a548916926b5dbfe8ecb Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 28 Nov 2017 19:35:44 -0500 Subject: Make whole version string available in core files Change-Id: I1f292e6035e1ff9e7bdca8f0a9275ebd3d4d8d0a Signed-off-by: Florin Coras --- src/vpp/app/version.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vpp/app/version.c b/src/vpp/app/version.c index 0a2c7fd4990..d99f875e12e 100644 --- a/src/vpp/app/version.c +++ b/src/vpp/app/version.c @@ -16,7 +16,9 @@ #include #include -static char *vpe_version_string = +/* N.B. Variable is not static to ensure it's visible in core dumps, i.e., + * it doesn't go to rodata segment */ +char *vpe_version_string = "vpp v" VPP_BUILD_VER " built by " VPP_BUILD_USER " on " VPP_BUILD_HOST " at " VPP_BUILD_DATE; -- cgit 1.2.3-korg