Browse Source

fix logging

pull/1/head
Pieter Wuille 12 years ago
parent
commit
d6dfa9a8ab
  1. 2
      netbase.cpp
  2. 6
      util.h

2
netbase.cpp

@ -13,6 +13,8 @@ @@ -13,6 +13,8 @@
#include "strlcpy.h"
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
#define printf my_printf
using namespace std;
// Settings

6
util.h

@ -90,10 +90,14 @@ std::string static inline strprintf(const std::string &format, ...) { @@ -90,10 +90,14 @@ std::string static inline strprintf(const std::string &format, ...) {
return ret;
}
bool static inline error(std::string err) {
bool static inline error(std::string err, ...) {
return false;
}
bool static inline my_printf(std::string err, ...) {
return true;
}
std::vector<unsigned char> DecodeBase32(const char* p, bool* pfInvalid = NULL);
std::string DecodeBase32(const std::string& str);
std::string EncodeBase32(const unsigned char* pch, size_t len);

Loading…
Cancel
Save