mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 13:41:17 +00:00
in torrent-magnet.c and utils.h, use tr_torrentName() instead of tor->info.name
This commit is contained in:
@@ -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( ... ) \
|
||||
|
||||
Reference in New Issue
Block a user