From f42489d8e6b70abbfd48cbc72f279c3c40be0f77 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 21 Jan 2010 12:33:01 +0000 Subject: [PATCH] changed name of turtle tunnels into a more explicit and less losy name ;-) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2103 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/turtle/p3turtle.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/turtle/p3turtle.cc b/libretroshare/src/turtle/p3turtle.cc index ecc72b4ca..74f073368 100644 --- a/libretroshare/src/turtle/p3turtle.cc +++ b/libretroshare/src/turtle/p3turtle.cc @@ -162,7 +162,7 @@ void p3turtle::statusChange(const std::list &plist) // derived from pqi void p3turtle::addDistantPeer(const TurtleFileHash&,TurtleTunnelId tid) { char buff[400] ; - sprintf(buff,"Turtle tunnel %08x",tid) ; + sprintf(buff,"Anonymous F2F tunnel %08x",tid) ; { _virtual_peers[TurtleVirtualPeerId(buff)] = tid ; @@ -1686,7 +1686,11 @@ static std::string printNumber(uint64_t num,bool hex=false) if(hex) { char tmp[100] ; - sprintf(tmp,"%08x%08x", uint32_t(num >> 32),uint32_t(num & ( (1<<32)-1 ))) ; + + if(num < (1<<32)) + sprintf(tmp,"%08x", uint32_t(num)) ; + else + sprintf(tmp,"%08x%08x", uint32_t(num >> 32),uint32_t(num & ( (1<<32)-1 ))) ; return std::string(tmp) ; } else