Remove obsolete 'enabled' variable from progress state
PATCH 1/1 Remove obsolete 'enabled' variable from progress state
From: Jes Sorensen <[email protected]>
Signed-off-by Jes Sorensen <[email protected]>
--- qemu-progress.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
qemu-progress.c +2 -6
@@ -29,7 +29,6 @@#include <signal.h> struct progress_state { -int enabled;float current;float last_print;float min_skip;
@@ -46,10 +45,8 @@ static struct progress_state state;*/ static void progress_simple_print (void ) { -if (state.enabled) { -printf (" (%3.2f/100%%)\r" , state.current); -fflush (stdout); - } +printf (" (%3.2f/100%%)\r" , state.current); +fflush (stdout); }static void progress_simple_end (void )
@@ -92,7 +89,6 @@ static void progress_dummy_init(void)void qemu_progress_init (int enabled,float min_skip) { - state.enabled = enabled; state.min_skip = min_skip;if (enabled) {progress_simple_init ();
Signature · 1 line
1.7.4.2
Quoted 6 lines · On Fri, Apr 15, 2011 at 4:08 PM, <[email protected]> wrote:
From: Jes Sorensen <[email protected]>
Signed-off-by Jes Sorensen <[email protected]>---
qemu-progress.c | 8 ++------1 files changed, 2 insertions(+), 6 deletions(-)
Reviewed-by Stefan Hajnoczi <[email protected]>
Kevin Wolf
AppliedAm 15.04.2011 17:08, schrieb [email protected]:
Quoted 3 lines
From: Jes Sorensen <[email protected]>
Signed-off-by Jes Sorensen <[email protected]>
Thanks, applied to the block branch.
Kevin