aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-11-28 19:35:44 -0500
committerChris Luke <chris_luke@comcast.com>2017-11-29 02:39:45 +0000
commite80ae9ea8ed04c82c151a548916926b5dbfe8ecb (patch)
tree337f7b23c680a3976edd9534f857ec50a5944968 /src
parentd7bfa0e4fedb896f9c2808053c6c6620d3a41a43 (diff)
Make whole version string available in core files
Change-Id: I1f292e6035e1ff9e7bdca8f0a9275ebd3d4d8d0a Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/app/version.c4
1 files changed, 3 insertions, 1 deletions
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 <vppinfra/cpu.h>
#include <vpp/app/version.h>
-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;