From: DRC Date: Wed, 12 Mar 2014 07:16:17 +0000 (+0000) Subject: Fix a couple of output formatting issues X-Git-Tag: 1.3.90~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1efc8a0ef34f631462abb9f885dde641bbaa123;p=libjpeg-turbo 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 --- 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 {