message: Format `src/util.h` according to BU coding style rules
diff: @@ -319,21 +319,34 @@ bool SetupNetworking();
  bool LogAcceptCategory(const char *category);
  /** Get format string from VA_ARGS for error reporting */
  -template<typename... Args> std::string FormatStringFromLogArgs(const char *fmt, const Args&... args) { return fmt; }
  +template <typename... Args>
  +std::string FormatStringFromLogArgs(const char *fmt, const Args &... args)
  +{
  + return fmt;
  +}
  -#define LogPrintf(...) do { \
  +#define LogPrintf(...) \
  + do \
  + { \
  std::string _log_msg_; /* Unlikely name to avoid shadowing variables */ \
  - try { \
  + try \
  + { \
  _log_msg_ = tfm::format(__VA_ARGS__); \
  - } catch (tinyformat::format_error &e) { \
  + } \
  + catch (tinyformat::format_error & e) \
  + { \
  /* Original format string will have newline so don't add one here */ \
  - _log_msg_ = "Error \"" + std::string(e.what()) + "\" while formatting log message: " + FormatStringFromLogArgs(__VA_ARGS__); \
  + _log_msg_ = "Error \"" + std::string(e.what()) + "\" while formatting log message: " + \
  + FormatStringFromLogArgs(__VA_ARGS__); \
  } \
  LogPrintStr(_log_msg_); \
  } while (0)
  -#define LogPrint(category, ...) do { \
  - if (LogAcceptCategory((category))) { \
  +#define LogPrint(category, ...) \
  + do \
  + { \
  + if (LogAcceptCategory((category))) \
  + { \
  LogPrintf(__VA_ARGS__); \
  } \
  } while (0)
  