Skip to content

Commit

Permalink
Fix_message_creating_PDF_in
Browse files Browse the repository at this point in the history
The message that displays where the nwipe PDF certificate
is being saved was being printed multiple times in the
middle of the erasure summary table.

This was corrected so that it only prints once at the end
of the table.
  • Loading branch information
PartialVolume committed Oct 23, 2023
1 parent 603716e commit 6dac5dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,12 +893,18 @@ void nwipe_log_summary( nwipe_context_t** ptr, int nwipe_selected )
/* Create the PDF report/certificate */
if( strcmp( nwipe_options.PDFreportpath, "noPDF" ) != 0 )
{
nwipe_log( NWIPE_LOG_NOTIMESTAMP, "Creating PDF report in %s\n", nwipe_options.PDFreportpath );
printf( "Creating PDF report in %s\n", nwipe_options.PDFreportpath );
create_pdf( c[i] );
}
}

/* Log information regarding where the PDF certificate is saved but log after the summary table so
* this information is only printed once.
*/
if( strcmp( nwipe_options.PDFreportpath, "noPDF" ) != 0 )
{
nwipe_log( NWIPE_LOG_NOTIMESTAMP, "Creating PDF report in %s\n", nwipe_options.PDFreportpath );
}

/* Determine the size of throughput so that the correct nomenclature can be used */
Determine_C_B_nomenclature( total_throughput, total_throughput_string, 13 );

Expand Down

0 comments on commit 6dac5dd

Please sign in to comment.