fix logging

This commit is contained in:
Pieter Wuille 2012-05-25 16:03:10 +02:00
parent ff1515d9fe
commit d6dfa9a8ab
2 changed files with 7 additions and 1 deletions

View File

@ -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
View File

@ -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);