1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

in torrent-magnet.c and utils.h, use tr_torrentName() instead of tor->info.name

This commit is contained in:
Jordan Lee 2012-10-16 02:48:26 +00:00
parent 2dedc1c4c6
commit bb49ab9a01
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@
#define dbgmsg( tor, ... ) \
do { \
if( tr_deepLoggingIsActive( ) ) \
tr_deepLog( __FILE__, __LINE__, tor->info.name, __VA_ARGS__ ); \
tr_deepLog( __FILE__, __LINE__, tr_torrentName( tor ), __VA_ARGS__ ); \
} while( 0 )
/***

View file

@ -141,19 +141,19 @@ void tr_msg( const char * file, int line,
#define tr_torerr( tor, ... ) \
do { \
if( tr_msgLoggingIsActive( TR_MSG_ERR ) ) \
tr_msg( __FILE__, __LINE__, TR_MSG_ERR, tor->info.name, __VA_ARGS__ ); \
tr_msg( __FILE__, __LINE__, TR_MSG_ERR, tr_torrentName( tor ), __VA_ARGS__ ); \
} while( 0 )
#define tr_torinf( tor, ... ) \
do { \
if( tr_msgLoggingIsActive( TR_MSG_INF ) ) \
tr_msg( __FILE__, __LINE__, TR_MSG_INF, tor->info.name, __VA_ARGS__ ); \
tr_msg( __FILE__, __LINE__, TR_MSG_INF, tr_torrentName( tor ), __VA_ARGS__ ); \
} while( 0 )
#define tr_tordbg( tor, ... ) \
do { \
if( tr_msgLoggingIsActive( TR_MSG_DBG ) ) \
tr_msg( __FILE__, __LINE__, TR_MSG_DBG, tor->info.name, __VA_ARGS__ ); \
tr_msg( __FILE__, __LINE__, TR_MSG_DBG, tr_torrentName( tor ), __VA_ARGS__ ); \
} while( 0 )
#define tr_err( ... ) \