mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
in torrent-magnet.c and utils.h, use tr_torrentName() instead of tor->info.name
This commit is contained in:
parent
2dedc1c4c6
commit
bb49ab9a01
2 changed files with 4 additions and 4 deletions
|
@ -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 )
|
||||
|
||||
/***
|
||||
|
|
|
@ -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( ... ) \
|
||||
|
|
Loading…
Reference in a new issue