mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Merge pull request #319 from PartialVolume/Add_details_of_wipe_to_log
log the nwipe options that the wipe/s is going to use.
This commit is contained in:
@@ -289,6 +289,9 @@ int main( int argc, char** argv )
|
||||
/* TODO: free c1 and c2 memory. */
|
||||
if( user_abort == 0 )
|
||||
{
|
||||
/* Log the wipe options that have been selected immediately prior to the start of the wipe */
|
||||
nwipe_options_log();
|
||||
|
||||
/* The wipe has been initiated */
|
||||
global_wipe_status = 1;
|
||||
|
||||
|
||||
@@ -399,6 +399,9 @@ int nwipe_options_parse( int argc, char** argv )
|
||||
|
||||
void nwipe_options_log( void )
|
||||
{
|
||||
extern nwipe_prng_t nwipe_twister;
|
||||
extern nwipe_prng_t nwipe_isaac;
|
||||
|
||||
/**
|
||||
* Prints a manifest of options to the log.
|
||||
*/
|
||||
@@ -444,6 +447,23 @@ void nwipe_options_log( void )
|
||||
}
|
||||
|
||||
nwipe_log( NWIPE_LOG_NOTICE, " banner = %s", banner );
|
||||
|
||||
if( nwipe_options.prng == &nwipe_twister )
|
||||
{
|
||||
nwipe_log( NWIPE_LOG_NOTICE, " prng = Mersenne Twister" );
|
||||
}
|
||||
else
|
||||
{
|
||||
if( nwipe_options.prng == &nwipe_isaac )
|
||||
{
|
||||
nwipe_log( NWIPE_LOG_NOTICE, " prng = Isaac" );
|
||||
}
|
||||
else
|
||||
{
|
||||
nwipe_log( NWIPE_LOG_NOTICE, " prng = Undefined" );
|
||||
}
|
||||
}
|
||||
|
||||
nwipe_log( NWIPE_LOG_NOTICE, " method = %s", nwipe_method_label( nwipe_options.method ) );
|
||||
nwipe_log( NWIPE_LOG_NOTICE, " rounds = %i", nwipe_options.rounds );
|
||||
nwipe_log( NWIPE_LOG_NOTICE, " sync = %i", nwipe_options.sync );
|
||||
|
||||
Reference in New Issue
Block a user