From nobody Fri May 3 13:57:37 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) client-ip=80.81.252.135; envelope-from=seabios-bounces@seabios.org; helo=mail.coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from mail.coreboot.org (mail.coreboot.org [80.81.252.135]) by mx.zohomail.com with SMTPS id 1513739256531626.1635851575787; Tue, 19 Dec 2017 19:07:36 -0800 (PST) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1eRUik-0002PJ-2m; Wed, 20 Dec 2017 04:07:02 +0100 Received: from mail-ua0-f195.google.com ([209.85.217.195]) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1eR6yG-0003hn-RJ for seabios@seabios.org; Tue, 19 Dec 2017 02:45:38 +0100 Received: by mail-ua0-f195.google.com with SMTP id h2so11975355uae.12 for ; Mon, 18 Dec 2017 17:45:40 -0800 (PST) Received: by 10.31.107.211 with HTTP; Mon, 18 Dec 2017 17:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=ynynoEEHd/voyPGvf0mRaqQwI/VhiLOAOSaHOti7mLE=; b=SdoN5SrUi9lp6Kl0A8HVx/GdhV6xbt4vpbeKgBgkBnxyjDtBYzMxzsX/XNLNHDvQlb 9YIq1qBm5uwrd1g8zd+GedwEG12GylvUJsphGSBiVZ+2Td2W6z14RCd4TOcRzHFyhqtr PLHiYOckXVe1RtABiOobtXsRg1nQ+SNsfFDCfqNFY1MiDoHzf2u91EnXxMT7inzFQhKd WvEDtA5RbnEHLe5Dynw5u/6SXna5rNhKgJDneMcXPNRYs6YoQU1B3EUc44aUTfASaPM8 wN47llcPKd2GviSczVBuHRdiGH6muRAmIS8/fnuOzSPGjCWINEjImoELoLTg+UB6zlp0 /tIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:date:message-id:subject:to; bh=ynynoEEHd/voyPGvf0mRaqQwI/VhiLOAOSaHOti7mLE=; b=j7i+zJLkdjwfPUiHj0SRYyEYR0ipvSYxgeDzytsGeZujSoxtYbZUC6K7U6sfS9MfkW BQ6aa+9yfRimi3HdOiPTf5/NplU02Vwqsk2gLV4/aoN+3Rw2bva3YpPTeZVUPzXKg6RZ 4Ut4PRQVHxkgZ/tZ9VMPCrJATivb42Czfb/2M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=ynynoEEHd/voyPGvf0mRaqQwI/VhiLOAOSaHOti7mLE=; b=ABVbprV3+85Wqce1JnprYQIWVe73sfPBumbKRq7sdDPv/pIsg56yHcLnWLLYhWsMq5 tU6fZ3kp7xylKNZghEDoE79AOinkI8U6q+af1aK1576N42m6MzDKJQ7t7R9OX97Lo5h2 EwGZPoRtDDT1yJ5P+cIYW8kcgAI9oekaG1DkAkhK4BxRnb+oKOv/Hz1fEn7jJtNZRpju MtwkEXvmvdI6GhgLzub2DDt0Tsee0WX9SR8foNpQTWgcOCpzJw592XD8vrv40YYOPugg pO6tyOOub6WfYjCeQsvveQL83jCtxCvK/b/9XC3dK2VYpVMJ3cfchTJyhmU60rJOCgSg /EaQ== X-Gm-Message-State: AKGB3mIbdA/+vFNV0lfYbd0GgwtfAZEeTRbpeSQrAJ1GpxEhvv2TZehS Eddu04+ErPKg6Odla9Gp92OL9M5UdJpFqGDot/W8UHvNb2g= X-Google-Smtp-Source: ACJfBouErp5j7l1rFuNo3W/LIVgBKvziXUp+SlmguEXWf6M/awMIGb5YeR7CblgYD/1wCRguzXYh9JTodRwkfBZe0Ho= X-Received: by 10.176.80.252 with SMTP id d57mr1976493uaa.203.1513647937378; Mon, 18 Dec 2017 17:45:37 -0800 (PST) MIME-Version: 1.0 From: Vadim Bendebury Date: Mon, 18 Dec 2017 17:44:56 -0800 X-Google-Sender-Auth: a1e08aN9p9EkE-tfTj7YVannUB8 Message-ID: To: seabios@seabios.org X-Spam-Score: -2.9 (--) X-Mailman-Approved-At: Wed, 20 Dec 2017 04:07:00 +0100 Subject: [SeaBIOS] [PATCH] readserial: allow reading of zero bytes X-BeenThere: seabios@seabios.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SeaBIOS mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Errors-To: seabios-bounces@seabios.org Sender: "SeaBIOS" X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Certain serial device drivers might return without reading anything, returning empty buffer. This is not an indication of the interface being shut down, the readserial utility should keep running. Signed-off-by: Vadim Bendebury --- scripts/readserial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/readserial.py b/scripts/readserial.py index a7383e8..ffb076f 100755 --- a/scripts/readserial.py +++ b/scripts/readserial.py @@ -71,7 +71,7 @@ def readserial(infile, logfile, byteadjust): continue d =3D infile.read(4096) if not d: - return 0 + continue datatime =3D time.time() datatime -=3D len(d) * byteadjust --=20 2.15.1.504.g5279b80103-goog _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios