From 193e861917e1444e13aa899b7f66e89dbf83d967 Mon Sep 17 00:00:00 2001
From: Gerardo Ganis <Gerardo.Ganis@cern.ch>
Date: Thu, 10 Jul 2008 11:04:25 +0000
Subject: [PATCH] Improve/fix notification messages

git-svn-id: http://root.cern.ch/svn/root/trunk@24763 27541ba8-7e3a-0410-8455-c3a389f83636
---
 proof/proofx/src/TXSocket.cxx        | 6 +++---
 proof/proofx/src/TXSocketHandler.cxx | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/proof/proofx/src/TXSocket.cxx b/proof/proofx/src/TXSocket.cxx
index 753f3aaaa24..d0d470a3fb1 100644
--- a/proof/proofx/src/TXSocket.cxx
+++ b/proof/proofx/src/TXSocket.cxx
@@ -826,8 +826,8 @@ void TXSocket::PostMsg(Int_t type)
 
    // Signal it and release the mutex
    if (gDebug > 0)
-      Info("PostMsg", "%p: posting semaphore: %p (%d bytes)",
-                          this, &fASem, mlen);
+      Info("PostMsg", "%p: posting type %d to semaphore: %p (%d bytes)",
+                          this, type, &fASem, mlen);
    fASem.Post();
 
    // Done
@@ -1225,7 +1225,7 @@ Int_t TXSocket::SendRaw(const void *buffer, Int_t length, ESendRecvOptions opt)
 
    // Failure notification (avoid using the handler: we may be exiting)
    Error("SendRaw", "%s: problems sending %d bytes to server",
-                    fHost.Data(), Request.sendrcv.dlen);
+                    fHost.Data(), length);
    return -1;
 }
 
diff --git a/proof/proofx/src/TXSocketHandler.cxx b/proof/proofx/src/TXSocketHandler.cxx
index 7413bf06dfd..0ea8dc62c0a 100644
--- a/proof/proofx/src/TXSocketHandler.cxx
+++ b/proof/proofx/src/TXSocketHandler.cxx
@@ -45,7 +45,8 @@ Bool_t TXSocketHandler::Notify()
    {  R__LOCKGUARD(&TXSocket::fgReadyMtx);
       s = (TXSocket *) TXSocket::fgReadySock.Last();
       if (gDebug > 2)
-         Info("Notify", "ready socket %p (input socket: %p)", s, fInputSock);
+         Info("Notify", "ready socket %p (%s) (input socket: %p)",
+                        s, (s ? s->GetTitle() : "***undef***"), fInputSock);
    }
 
    // If empty, nothing to do
-- 
GitLab