diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmessage/llxfer.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llmessage/llxfer.cpp')
-rw-r--r-- | linden/indra/llmessage/llxfer.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/linden/indra/llmessage/llxfer.cpp b/linden/indra/llmessage/llxfer.cpp index 5430213..ab7b1ee 100644 --- a/linden/indra/llmessage/llxfer.cpp +++ b/linden/indra/llmessage/llxfer.cpp | |||
@@ -103,7 +103,7 @@ void LLXfer::free () | |||
103 | 103 | ||
104 | S32 LLXfer::startSend (U64 xfer_id, const LLHost &remote_host) | 104 | S32 LLXfer::startSend (U64 xfer_id, const LLHost &remote_host) |
105 | { | 105 | { |
106 | llwarns << "undifferentiated LLXfer::startSend for " << getName() << llendl; | 106 | llwarns << "undifferentiated LLXfer::startSend for " << getFileName() << llendl; |
107 | return (-1); | 107 | return (-1); |
108 | } | 108 | } |
109 | 109 | ||
@@ -119,7 +119,7 @@ void LLXfer::setXferSize (S32 xfer_size) | |||
119 | 119 | ||
120 | S32 LLXfer::startDownload() | 120 | S32 LLXfer::startDownload() |
121 | { | 121 | { |
122 | llwarns << "undifferentiated LLXfer::startDownload for " << getName() | 122 | llwarns << "undifferentiated LLXfer::startDownload for " << getFileName() |
123 | << llendl; | 123 | << llendl; |
124 | return (-1); | 124 | return (-1); |
125 | } | 125 | } |
@@ -293,13 +293,13 @@ S32 LLXfer::processEOF() | |||
293 | 293 | ||
294 | if (LL_ERR_NOERR == mCallbackResult) | 294 | if (LL_ERR_NOERR == mCallbackResult) |
295 | { | 295 | { |
296 | llinfos << "xfer from " << mRemoteHost << " complete: " << getName() | 296 | llinfos << "xfer from " << mRemoteHost << " complete: " << getFileName() |
297 | << llendl; | 297 | << llendl; |
298 | } | 298 | } |
299 | else | 299 | else |
300 | { | 300 | { |
301 | llinfos << "xfer from " << mRemoteHost << " failed, code " | 301 | llinfos << "xfer from " << mRemoteHost << " failed, code " |
302 | << mCallbackResult << ": " << getName() << llendl; | 302 | << mCallbackResult << ": " << getFileName() << llendl; |
303 | } | 303 | } |
304 | 304 | ||
305 | if (mCallback) | 305 | if (mCallback) |
@@ -327,7 +327,7 @@ void LLXfer::abort (S32 result_code) | |||
327 | { | 327 | { |
328 | mCallbackResult = result_code; | 328 | mCallbackResult = result_code; |
329 | 329 | ||
330 | llinfos << "Aborting xfer from " << mRemoteHost << " named " << getName() | 330 | llinfos << "Aborting xfer from " << mRemoteHost << " named " << getFileName() |
331 | << " - error: " << result_code << llendl; | 331 | << " - error: " << result_code << llendl; |
332 | 332 | ||
333 | gMessageSystem->newMessageFast(_PREHASH_AbortXfer); | 333 | gMessageSystem->newMessageFast(_PREHASH_AbortXfer); |
@@ -343,11 +343,9 @@ void LLXfer::abort (S32 result_code) | |||
343 | 343 | ||
344 | /////////////////////////////////////////////////////////// | 344 | /////////////////////////////////////////////////////////// |
345 | 345 | ||
346 | const char * LLXfer::getName() | 346 | std::string LLXfer::getFileName() |
347 | { | 347 | { |
348 | static char tmp_str[256]; /* Flawfinder: ignore */ | 348 | return U64_to_str(mID); |
349 | |||
350 | return (U64_to_str(mID, tmp_str, sizeof(tmp_str))); | ||
351 | } | 349 | } |
352 | 350 | ||
353 | /////////////////////////////////////////////////////////// | 351 | /////////////////////////////////////////////////////////// |
@@ -367,7 +365,7 @@ S32 LLXfer::getMaxBufferSize () | |||
367 | 365 | ||
368 | std::ostream& operator<< (std::ostream& os, LLXfer &hh) | 366 | std::ostream& operator<< (std::ostream& os, LLXfer &hh) |
369 | { | 367 | { |
370 | os << hh.getName() ; | 368 | os << hh.getFileName() ; |
371 | return os; | 369 | return os; |
372 | } | 370 | } |
373 | 371 | ||