Commit 65b19b12 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make VCC_Return_Name() return lower case, and use it also for the SMH

logging.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3480 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 02ba363c
......@@ -46,6 +46,7 @@
#include "shmlog.h"
#include "vcl.h"
#include "cache.h"
#include "libvcl.h"
struct vcls {
unsigned magic;
......@@ -299,21 +300,6 @@ ccf_config_use(struct cli *cli, const char * const *av, void *priv)
/*--------------------------------------------------------------------*/
static const char *
vcl_handlingname(unsigned u)
{
switch (u) {
#define VCL_RET_MAC(a, b, c,d) case VCL_RET_##b: return(#a);
#define VCL_RET_MAC_E(a, b, c,d) case VCL_RET_##b: return(#a);
#include "vcl_returns.h"
#undef VCL_RET_MAC
#undef VCL_RET_MAC_E
default:
return (NULL);
}
}
#define VCL_RET_MAC(l,u,b,n)
#define VCL_MET_MAC(func, upper, bitmap) \
......@@ -325,7 +311,7 @@ VCL_##func##_method(struct sess *sp) \
sp->cur_method = VCL_MET_ ## upper; \
WSP(sp, SLT_VCL_call, "%s", #func); \
sp->vcl->func##_func(sp); \
WSP(sp, SLT_VCL_return, "%s", vcl_handlingname(sp->handling)); \
WSP(sp, SLT_VCL_return, "%s", VCC_Return_Name(sp->handling)); \
sp->cur_method = 0; \
assert(sp->handling & bitmap); \
assert(!(sp->handling & ~bitmap)); \
......
......@@ -670,8 +670,8 @@ VCC_Return_Name(unsigned method)
switch (method) {
case 0: return ("<none>");
#define VCL_RET_MAC(l, u, b, i) case b: return(#u);
#define VCL_RET_MAC_E(l, u, b, i) case b: return(#u);
#define VCL_RET_MAC(l, u, b, i) case b: return(#l);
#define VCL_RET_MAC_E(l, u, b, i) case b: return(#l);
#include "vcl_returns.h"
#undef VCL_RET_MAC_E
#undef VCL_RET_MAC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment