Ignore:
Timestamp:
Jan 25, 2013, 11:34:20 PM (9 years ago)
Author:
jordan
Message:

make all the log functions/structs/enums use a single 'tr_log' namespace, such as tr_logGetQueue, tr_logAddInfo, tr_logIsLevelActive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/verify.c

    r13631 r13868  
    2525#include "fdlimit.h"
    2626#include "list.h"
     27#include "log.h"
    2728#include "platform.h" /* tr_lock () */
    2829#include "torrent.h"
     
    5960  SHA1_Init (&sha);
    6061
    61   tr_tordbg (tor, "%s", "verifying torrent...");
     62  tr_logAddTorDbg (tor, "%s", "verifying torrent...");
    6263  tr_torrentSetChecked (tor, 0);
    6364  while (!*stopFlag && (pieceIndex < tor->info.pieceCount))
     
    160161  /* stopwatch */
    161162  end = tr_time ();
    162   tr_tordbg (tor, "Verification is done. It took %d seconds to verify %"PRIu64" bytes (%"PRIu64" bytes per second)",
     163  tr_logAddTorDbg (tor, "Verification is done. It took %d seconds to verify %"PRIu64" bytes (%"PRIu64" bytes per second)",
    163164             (int)(end-begin), tor->info.totalSize,
    164165             (uint64_t)(tor->info.totalSize/ (1+ (end-begin))));
     
    227228      tr_lockUnlock (getVerifyLock ());
    228229
    229       tr_torinf (tor, "%s", _("Verifying torrent"));
     230      tr_logAddTorInfo (tor, "%s", _("Verifying torrent"));
    230231      tr_torrentSetVerifyState (tor, TR_VERIFY_NOW);
    231232      changed = verifyTorrent (tor, &stopCurrent);
     
    271272
    272273  assert (tr_isTorrent (tor));
    273   tr_torinf (tor, "%s", _("Queued for verification"));
     274  tr_logAddTorInfo (tor, "%s", _("Queued for verification"));
    274275
    275276  node = tr_new (struct verify_node, 1);
Note: See TracChangeset for help on using the changeset viewer.