]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Sat, 15 Dec 2012 01:13:21 +0000 (18:13 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Sat, 15 Dec 2012 01:13:21 +0000 (18:13 -0700)
src/Debug.h
src/debug.cc
src/tests/stub_debug.cc

index e772b467f79400079bfab2793cafebb29926743b..18c01ca4919d98df19f50263f1dedd45a1a7b2f7 100644 (file)
@@ -159,15 +159,15 @@ void _db_print(const char *,...) PRINTF_FORMAT_ARG1;
 void _db_set_syslog(const char *facility);
 void _db_rotate_log(void);
 
-
 /// Prints raw and/or non-terminated data safely, efficiently, and beautifully.
 /// Allows raw data debugging in debugs() statements with low debugging levels
 /// by printing only if higher section debugging levels are configured:
 ///   debugs(11, DBG_IMPORTANT, "always printed" << Raw(may be printed...));
-class Raw {
+class Raw
+{
 public:
     Raw(const char *label, const char *data, const size_t size):
-        level(-1), label_(label), data_(data), size_(size) {}
+            level(-1), label_(label), data_(data), size_(size) {}
 
     /// limit data printing to at least the given debugging level
     Raw &minLevel(const int aLevel) { level = aLevel; return *this; }
index 83ab4ecd4525155ef6e84694b8676a248ce491e7..7320fe9ad374392356b6480aaa1c18d94b288f75 100644 (file)
@@ -814,7 +814,7 @@ Raw::print(std::ostream &os) const
 
     // finalize debugging level if no level was set explicitly via minLevel()
     const int finalLevel = (level >= 0) ? level :
-        (size_ > 40 ? DBG_DATA : Debug::sectionLevel);
+                           (size_ > 40 ? DBG_DATA : Debug::sectionLevel);
     if (finalLevel <= Debug::sectionLevel) {
         os << (label_ ? '=' : ' ');
         if (data_)
index c7f6133ca0e2c491b383c09e407bb769f79a685b..4634aba62452a2c88114f95a87b66e64f9670b53 100644 (file)
@@ -153,7 +153,7 @@ Raw::print(std::ostream &os) const
 
     // finalize debugging level if no level was set explicitly via minLevel()
     const int finalLevel = (level >= 0) ? level :
-        (size_ > 40 ? DBG_DATA : Debug::sectionLevel);
+                           (size_ > 40 ? DBG_DATA : Debug::sectionLevel);
     if (finalLevel <= Debug::sectionLevel) {
         os << (label_ ? '=' : ' ');
         os.write(data_, size_);