mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
suppressed debug printfs and costly outputs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3967 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
70c276fec6
commit
474aa31fd1
4 changed files with 83 additions and 7 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "pqi/authssl.h"
|
||||
#include "util/rsnet.h"
|
||||
|
||||
// #define DEBUG_PQIBIN
|
||||
|
||||
BinFileInterface::BinFileInterface(const char *fname, int flags)
|
||||
:bin_flags(flags), buf(NULL), hash(NULL), bcount(0)
|
||||
|
@ -65,6 +66,9 @@ BinFileInterface::BinFileInterface(const char *fname, int flags)
|
|||
|
||||
if (buf)
|
||||
{
|
||||
#ifdef DEBUG_PQIBIN
|
||||
std::cerr << "BinFileInterface: " << (void*)this << ": openned file " << fname << std::endl;
|
||||
#endif
|
||||
/* no problem */
|
||||
|
||||
/* go to the end */
|
||||
|
@ -91,6 +95,9 @@ BinFileInterface::~BinFileInterface()
|
|||
if (buf)
|
||||
{
|
||||
fclose(buf);
|
||||
#ifdef DEBUG_PQIBIN
|
||||
std::cerr << "BinFileInterface: " << (void*)this << ": closed file " << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (hash)
|
||||
|
@ -104,6 +111,9 @@ int BinFileInterface::close()
|
|||
if (buf)
|
||||
{
|
||||
fclose(buf);
|
||||
#ifdef DISTRIB_DEBUG
|
||||
std::cerr << "BinFileInterface: " << (void*)this << ": closed file " << std::endl;
|
||||
#endif
|
||||
buf = NULL;
|
||||
}
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue