From patchwork Sun May 4 01:51:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McCrohan X-Patchwork-Id: 4107011 Return-Path: X-Original-To: patchwork-linux-media@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 E40D5BFF02 for ; Sun, 4 May 2014 02:09:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE7C320253 for ; Sun, 4 May 2014 02:09:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E98B20251 for ; Sun, 4 May 2014 02:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753374AbaEDCJs (ORCPT ); Sat, 3 May 2014 22:09:48 -0400 Received: from fep19.mx.upcmail.net ([62.179.121.39]:63351 "EHLO fep19.mx.upcmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752897AbaEDCJs (ORCPT ); Sat, 3 May 2014 22:09:48 -0400 X-Greylist: delayed 1094 seconds by postgrey-1.27 at vger.kernel.org; Sat, 03 May 2014 22:09:47 EDT Received: from edge02.upcmail.net ([192.168.13.237]) by viefep16-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140504015131.BUDU24925.viefep16-int.chello.at@edge02.upcmail.net>; Sun, 4 May 2014 03:51:31 +0200 Received: from lambda.dereenigne.org ([188.141.43.74]) by edge02.upcmail.net with edge id xdrV1n00U1c0xrw02drXCl; Sun, 04 May 2014 03:51:31 +0200 X-SourceIP: 188.141.43.74 Received: from localhost.dereenigne.org ([127.0.0.1] helo=lambda.dereenigne.org) by lambda.dereenigne.org with esmtp (Exim 4.82) (envelope-from ) id 1WglaT-00068e-MS; Sun, 04 May 2014 02:51:29 +0100 From: Jonathan McCrohan To: linux-media@vger.kernel.org, pkg-vdr-dvb-devel@lists.alioth.debian.org Cc: Jonathan McCrohan Subject: [PATCH 3/6] [dvb-apps] dvb-apps: make zap flush stdout after status line Date: Sun, 4 May 2014 02:51:18 +0100 Message-Id: <1399168281-20626-4-git-send-email-jmccrohan@gmail.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1399168281-20626-1-git-send-email-jmccrohan@gmail.com> References: <1399168281-20626-1-git-send-email-jmccrohan@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Bug-Debian: http://bugs.debian.org/357126 Signed-off-by: Jonathan McCrohan --- util/szap/czap.c | 3 ++- util/szap/szap.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/util/szap/czap.c b/util/szap/czap.c index f49c524..062545f 100644 --- a/util/szap/czap.c +++ b/util/szap/czap.c @@ -227,9 +227,10 @@ int monitor_frontend (int fe_fd, int human_readable) if (status & FE_HAS_LOCK) printf("FE_HAS_LOCK"); - usleep(1000000); printf("\n"); + fflush(stdout); + usleep(1000000); if (exit_after_tuning && (status & FE_HAS_LOCK)) break; diff --git a/util/szap/szap.c b/util/szap/szap.c index 90bdbfb..12f393c 100644 --- a/util/szap/szap.c +++ b/util/szap/szap.c @@ -204,6 +204,7 @@ static int monitor_frontend (int fe_fd, int dvr, int human_readable) if (exit_after_tuning && ((status & FE_HAS_LOCK) || (++timeout >= 10))) break; + fflush(stdout); usleep(1000000); } while (1);