Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
c209326d
Commit
c209326d
authored
Aug 06, 2012
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
Apr 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the version identifier to the CLI banner.
Inspired by: patch from geoff
parent
773d4151
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
mgt_cli.c
bin/varnishd/mgt_cli.c
+1
-0
libvarnish.h
include/libvarnish.h
+1
-0
version.c
lib/libvarnish/version.c
+4
-2
No files found.
bin/varnishd/mgt_cli.c
View file @
c209326d
...
...
@@ -80,6 +80,7 @@ mcf_banner(struct cli *cli, const char *const *av, void *priv)
VCLI_Out
(
cli
,
"Varnish Cache CLI 1.0
\n
"
);
VCLI_Out
(
cli
,
"-----------------------------
\n
"
);
VCLI_Out
(
cli
,
"%s
\n
"
,
VSB_data
(
vident
)
+
1
);
VCLI_Out
(
cli
,
"%s
\n
"
,
VCS_version
);
VCLI_Out
(
cli
,
"
\n
"
);
VCLI_Out
(
cli
,
"Type 'help' for command list.
\n
"
);
VCLI_Out
(
cli
,
"Type 'quit' to close CLI session.
\n
"
);
...
...
include/libvarnish.h
View file @
c209326d
...
...
@@ -104,6 +104,7 @@ struct timespec TIM_timespec(double t);
struct
timeval
TIM_timeval
(
double
t
);
/* from libvarnish/version.c */
extern
const
char
*
VCS_version
;
void
VCS_Message
(
const
char
*
);
/* from libvarnish/vtmpfile.c */
...
...
lib/libvarnish/version.c
View file @
c209326d
...
...
@@ -36,11 +36,13 @@
#include "libvarnish.h"
#include "vcs_version.h"
const
char
*
VCS_version
=
PACKAGE_TARNAME
"-"
PACKAGE_VERSION
" revision "
VCS_Version
;
void
VCS_Message
(
const
char
*
progname
)
{
fprintf
(
stderr
,
"%s (%s-%s revision %s)
\n
"
,
progname
,
PACKAGE_TARNAME
,
PACKAGE_VERSION
,
VCS_Version
);
fprintf
(
stderr
,
"%s (%s)
\n
"
,
progname
,
VCS_version
);
fprintf
(
stderr
,
"Copyright (c) 2006 Verdens Gang AS
\n
"
);
fprintf
(
stderr
,
"Copyright (c) 2006-2011 Varnish Software AS
\n
"
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment