[libdvdcss-devel] css: Drop (disabled) debug output from AttackPattern() / AttackPadding()

Diego Biurrun git at videolan.org
Tue Oct 21 21:17:07 CEST 2014


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Oct 15 23:14:51 2014 +0200| [f0a464ccdabdcf43c4149f288052583c248407dd] | committer: Diego Biurrun

css: Drop (disabled) debug output from AttackPattern() / AttackPadding()

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=f0a464ccdabdcf43c4149f288052583c248407dd
---

 src/css.c |   18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/src/css.c b/src/css.c
index 024ffe5..e1e27e0 100644
--- a/src/css.c
+++ b/src/css.c
@@ -1651,15 +1651,6 @@ static int AttackPattern( uint8_t const p_sec[ DVDCSS_BLOCK_SIZE ],
                       &p_sec[ 0x80 - (i_best_plen / i_best_p) * i_best_p ],
                       &p_sec[0x54] /* key_seed */, p_key );
         i_success += ( res >= 0 );
-#if 0
-        if( res >= 0 )
-        {
-            fprintf( stderr, "key is %02x:%02x:%02x:%02x:%02x ",
-                     p_key[0], p_key[1], p_key[2], p_key[3], p_key[4] );
-            fprintf( stderr, "at block %5d pattern len %3d period %3d %s\n",
-                     i_pos, i_best_plen, i_best_p, (res>=0?"y":"n") );
-        }
-#endif
         return ( res >= 0 );
     }
 
@@ -1734,15 +1725,6 @@ static int AttackPadding( uint8_t const p_sec[ DVDCSS_BLOCK_SIZE ],
         i_tries++;
     }
 
-    if( 1 )
-    {
-        /*fprintf( stderr, "key is %02x:%02x:%02x:%02x:%02x ",
-                   p_key[0], p_key[1], p_key[2], p_key[3], p_key[4] );*/
-        fprintf( stderr, "at block %5d padding len %4d "
-                 "type %02x sub %02x\n",  i_pos, i_pes_length,
-                 p_sec[0x11], p_sec[0x17 + p_sec[0x16]]);
-    }
-
     return 0;
 }
 #endif



More information about the libdvdcss-devel mailing list