From a5a1cab34a12b1717b6da88c75522db2db6e39d1 Mon Sep 17 00:00:00 2001 From: Andriy Berestovskyy Date: Thu, 25 Feb 2016 16:24:45 +0100 Subject: [PATCH] DPDK: make Sandesh quiet Insufficient space in external memory buffer is not actually an error for the vRouter/DPDK, so we supress those messages by using -DSANDESH_QUIET. Change-Id: I5bc0a51f7c4659f2733a72e9b45322d117265a87 Closes-bug: #1546291 --- SConscript | 4 ++++ host/SConscript | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SConscript b/SConscript index 01f052d5e..e48e66dc1 100644 --- a/SConscript +++ b/SConscript @@ -30,6 +30,10 @@ env.Append(CPPPATH = [env['TOP'] + '/vrouter/sandesh/gen-c']) env.Append(CPPPATH = ['#tools']) env.Append(CPPPATH = ['#tools/sandesh/library/c']) +# Make Sandesh quiet for production +if 'production' in env['OPT']: + DefaultEnvironment().Append(CPPDEFINES='SANDESH_QUIET') + vr_root = './' makefile = vr_root + 'Makefile' dp_dir = Dir(vr_root).srcnode().abspath + '/' diff --git a/host/SConscript b/host/SConscript index 1e8eee52e..8a7ec25fa 100644 --- a/host/SConscript +++ b/host/SConscript @@ -14,7 +14,7 @@ libvrouter_sources = [ 'vr_host_packet.c', 'vr_host_io.c', 'vrouter_host_mod.c', - 'ulinux.c' + 'ulinux.c' ] # CFLAGS env.Append(CCFLAGS = '-g')