From patchwork Fri Jun 13 01:28:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey X-Patchwork-Id: 4346461 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 73AA8BEEAA for ; Fri, 13 Jun 2014 01:29:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9496320222 for ; Fri, 13 Jun 2014 01:29:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3229D20220 for ; Fri, 13 Jun 2014 01:29:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 30EB326089A; Fri, 13 Jun 2014 03:29:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,FROM_EXCESS_BASE64,NO_DNS_FOR_FROM,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id E0BC9260845; Fri, 13 Jun 2014 03:29:00 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id EB45626084B; Fri, 13 Jun 2014 03:28:59 +0200 (CEST) Received: from f438.i.mail.ru (f438.i.mail.ru [185.5.136.109]) by alsa0.perex.cz (Postfix) with ESMTP id 9E880260824 for ; Fri, 13 Jun 2014 03:28:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:Message-ID:Reply-To:Date:Mime-Version:Subject:To:From; bh=lU+opFOAMNxEPiYjOkXJ+d9Z6of35SAAHDC+0WgjGg8=; b=UGtp9V8UhVlle9sH2EAC+jA74GyOp5gUHQLhE4GEoyjOlXrZKo9in5B+09bmjk6/qs88/cEKAcvskf4PEijv7j6TOhCZrvEZUGq5MdkuaCL6Cuhgk4X7VHd5hefLSQWwZ11zaB/VcpD6DX1r+TPhJ5kZmTzNh6Y+WUB3VnpOVOA=; Received: from mail by f438.i.mail.ru with local (envelope-from ) id 1WvGIT-0004UE-RQ for alsa-devel@alsa-project.org; Fri, 13 Jun 2014 05:28:50 +0400 Received: from [85.198.154.243] by e.mail.ru with HTTP; Fri, 13 Jun 2014 05:28:49 +0400 From: =?UTF-8?B?U2VyZ2V5?= To: =?UTF-8?B?YWxzYS1kZXZlbA==?= Mime-Version: 1.0 X-Mailer: Mail.Ru Mailer 1.0 X-Originating-IP: [85.198.154.243] Date: Fri, 13 Jun 2014 05:28:49 +0400 X-Priority: 3 (Normal) Message-ID: <1402622929.875823920@f438.i.mail.ru> X-Mras: Ok X-Spam: undefined Subject: [alsa-devel] =?utf-8?q?=5BPATCH=5D_aplay=3A_Fix_VU-meter_stdout/s?= =?utf-8?q?tderr_mess?= X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: =?UTF-8?B?U2VyZ2V5?= List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 6bbeb78d forgot to change some of VU-meter output to stderr. This patch makes the output of `aplay -vvv` consistent again. --- aplay/aplay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index 33a8ed5..77e40a3 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1774,12 +1774,12 @@ static void compute_max_peak(u_char *data, size_t count) fflush(stderr); } else if(verbose==3) { - printf(_("Max peak (%li samples): 0x%08x "), (long)ocount, max_peak[0]); + fprintf(stderr, _("Max peak (%li samples): 0x%08x "), (long)ocount, max_peak[0]); for (val = 0; val < 20; val++) if (val <= perc[0] / 5) - putchar('#'); + putc('#', stderr); else - putchar(' '); + putc(' ', stderr); fprintf(stderr, " %i%%\n", perc[0]); fflush(stderr); }