From e1efc8a0ef34f631462abb9f885dde641bbaa123 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 12 Mar 2014 07:16:17 +0000 Subject: [PATCH] Fix a couple of output formatting issues git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1158 632fc199-4ca6-4c93-a231-07263d6284db --- tjbench.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tjbench.c b/tjbench.c index 1d1c504..454faa5 100644 --- a/tjbench.c +++ b/tjbench.c @@ -190,13 +190,14 @@ int decomp(unsigned char *srcbuf, unsigned char **jpegbuf, if(quiet) { - printf("%-6s ", - sigfig((double)(w*h)/1000000.*(double)iter/elapsed, 4, tempstr, 1024)); + printf("%-6s%s", + sigfig((double)(w*h)/1000000.*(double)iter/elapsed, 4, tempstr, 1024), + quiet==2? "\n":" "); if(doyuv) - printf("%s", + printf("%s\n", sigfig((double)(w*h)/1000000.*(double)iter/elapsedDecode, 4, tempstr, 1024)); - printf("\n"); + else if(quiet!=2) printf("\n"); } else { -- 2.40.0