]> git.ipfire.org Git - thirdparty/squid.git/commit
Added Raw, an std::ostream manipulator to print possibly non-terminated buffers
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 14 Dec 2012 16:07:18 +0000 (09:07 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 14 Dec 2012 16:07:18 +0000 (09:07 -0700)
commitbe039a686bacba55fa755ace9e9f51116ef4d30d
tree9c07fce802856676ae75f330b554d4d111e65a79
parenta9b6afe1a6cbf59381948934b428eb1f3ba316c6
Added Raw, an std::ostream manipulator to print possibly non-terminated buffers
and their labels/sizes.

The Raw manipulator tries to be smart about printing buffers at various
debugging levels: Large buffers are only printed at DBG_DATA by default.
This allows the caller to mix higher-level debug messages with dumping
of potentially large volumes of data. This smartness can be overruled
using an explicit minLevel() method call.
src/Debug.h
src/debug.cc
src/tests/stub_debug.cc