From 77bcab01feec0d2109931d7dc87a13b5e154a792 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 11 Nov 2009 10:07:03 +0000 Subject: [PATCH] Reporting number of pending bytes while thanking for patience in -vvv mode --- libburn/trunk/cdrskin/cdrskin.c | 9 ++++++--- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin.c b/libburn/trunk/cdrskin/cdrskin.c index e8132c2f..f93f3d42 100644 --- a/libburn/trunk/cdrskin/cdrskin.c +++ b/libburn/trunk/cdrskin/cdrskin.c @@ -5838,7 +5838,7 @@ int Cdrskin_burn_pacifier(struct CdrskiN *skin, double estim_time,estim_minutes,estim_seconds,percent; int ret,fifo_percent,fill,space,advance_interval=0,new_mb,old_mb,time_to_tell; int fs,bs,old_track_idx,buffer_fill,formatting= 0,use_data_image_size; - char fifo_text[80],mb_text[40]; + char fifo_text[80],mb_text[40], pending[40]; char *debug_mark= ""; /* use this to prepend a marker text for experiments */ /* for debugging */ @@ -5944,9 +5944,12 @@ thank_you_for_patience:; if(skin->verbosity>=Cdrskin_verbose_progresS) { if(skin->is_writing) fprintf(stderr,"\n"); + pending[0]= 0; + if(bytes_to_write > 0 && skin->verbosity >= Cdrskin_verbose_debuG) + sprintf(pending, " pnd %.f", bytes_to_write - written_total_bytes); fprintf(stderr, - "\rcdrskin: thank you for being patient for %.f seconds ", - elapsed_total_time); + "\rcdrskin: thank you for being patient for %.f seconds%21.21s", + elapsed_total_time, pending); } advance_interval= 1; } diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index a6f3748c..195ccc4c 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.11.11.100714" +#define Cdrskin_timestamP "2009.11.11.100822"