fix logging
This commit is contained in:
parent
ff1515d9fe
commit
d6dfa9a8ab
2 changed files with 7 additions and 1 deletions
|
@ -13,6 +13,8 @@
|
||||||
#include "strlcpy.h"
|
#include "strlcpy.h"
|
||||||
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
|
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
|
||||||
|
|
||||||
|
#define printf my_printf
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
|
|
6
util.h
6
util.h
|
@ -90,10 +90,14 @@ std::string static inline strprintf(const std::string &format, ...) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool static inline error(std::string err) {
|
bool static inline error(std::string err, ...) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool static inline my_printf(std::string err, ...) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<unsigned char> DecodeBase32(const char* p, bool* pfInvalid = NULL);
|
std::vector<unsigned char> DecodeBase32(const char* p, bool* pfInvalid = NULL);
|
||||||
std::string DecodeBase32(const std::string& str);
|
std::string DecodeBase32(const std::string& str);
|
||||||
std::string EncodeBase32(const unsigned char* pch, size_t len);
|
std::string EncodeBase32(const unsigned char* pch, size_t len);
|
||||||
|
|
Loading…
Add table
Reference in a new issue