diff --git a/libtransmission/torrent-magnet.c b/libtransmission/torrent-magnet.c index 4c81f4c11..1405c2541 100644 --- a/libtransmission/torrent-magnet.c +++ b/libtransmission/torrent-magnet.c @@ -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 ) /*** diff --git a/libtransmission/utils.h b/libtransmission/utils.h index 826a9b30c..8d8df7618 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -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( ... ) \