Message ID | 20180730014826.19097-3-sam@mendozajonas.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41f2YV3T1Cz9s21 for <incoming@patchwork.ozlabs.org>; Mon, 30 Jul 2018 11:49:18 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="CUKKA3XW"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Jx+zAxX3"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41f2YV1zMTzF132 for <incoming@patchwork.ozlabs.org>; Mon, 30 Jul 2018 11:49:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="CUKKA3XW"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Jx+zAxX3"; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mendozajonas.com (client-ip=64.147.123.19; helo=wout3-smtp.messagingengine.com; envelope-from=sam@mendozajonas.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="CUKKA3XW"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Jx+zAxX3"; dkim-atps=neutral Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41f2Y75CR5zF12T for <petitboot@lists.ozlabs.org>; Mon, 30 Jul 2018 11:48:58 +1000 (AEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id D366B410; Sun, 29 Jul 2018 21:48:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 29 Jul 2018 21:48:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= mendozajonas.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=hATv+pd0mmNKeY4JvuT6Yjus8fMnqFEC6cYesCS6gJA=; b=CUKKA3XW BEcNvWjFE7m3ZVfpBYDBRkMd8JQTia13pAcWJajPj5QaAnSnLL0F3qIblsz7mU7B nISCXK0uPfmaK8il9MkhjpGg3WFSzyOJ0UDcF8pAmha4bXuw1W9CPIVirzwKKgJ4 aTLb1tZTdiNXdgJTmPxpVJ49dK+ifbE4Tu4BAgL1WHbH160ownc/vPd5AhVhwco3 WRRTF2Lv8GB599PVug6mkgnFFW3sc+wC8NSuEtcixOM9CK4TAX6R3FollGI8R1ro +0PU9ZSruRpTBu+cQ0k1lv/KDS5BGzBHgfKUtwNP9XsvbRqyj4SFrz/5TsMA3uwV /sxfsTrXj46BjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=hATv+pd0mmNKeY4JvuT6Yjus8fMnqFEC6cYesCS6gJA=; b=Jx+zAxX3 u/oW46ssJ1CoA2W+MX5TkrZobTe6XAqDj5QZ/Nz+xQpMmsFLIqPzDPHYVZ8ZW9pC X+f8P3qZJ/Qa4UC2JnEKVLoQbx6IHVtSOeCBNgCtYqtGO5O3Vl/W0oJSqtc0fUJ7 xU/y9K1VOdd38t4FXClURNeU55JbHpsE5TyBlILNIxvc/CX4cfujICybxFHIyab0 WQi8fU+CtYS1eu/rzmV6hlcB2rNvCZQQ94MnWk24JZ1mnhSqDF1C+NriILPViMvC hhO4xXda6r0AQiIRshi54WOVj1xcf+29th5mTMvrvofq6aSTaGZNhlBZHVN8+uO7 U8rY1jqxlSYsBw== X-ME-Proxy: <xmx:h25eW0YMHymuQbCU_FbThRZtsu3emZ_37uyIYzMsMViXLTPNZoc2gA> <xmx:h25eW9VmoZP5M1GN10yWwgPdqu3Jun7t1eoC7tkm9VUXkJ-bO11dbw> <xmx:h25eW2ikPkoLrDyS_J6eKAHMmMnsDpTDvfkl4lLT1DYOc0QZaCCVLg> <xmx:h25eW7Vb2UED5szOnLzy7tMHFNcDa5dMaInkpPaVBIRQDP4_xHos-w> <xmx:h25eW9NcYa7Zt-H7PBpfWTvESh4mSHnDvUekwOMI8uUKRhGpCMi9iQ> <xmx:h25eW2zVFd0UehMMxvTRe6QOZBok9862OE4ME7EoFT9pBbQbsy4hIQ> X-ME-Sender: <xms:h25eW2YVsvGjO9ZODOcokdVzH6HbCflK7y0jcPDfx7fCQq-EiwgohQ> Received: from v4.ozlabs.ibm.com (unknown [122.99.82.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 22E6FE455F; Sun, 29 Jul 2018 21:48:53 -0400 (EDT) From: Samuel Mendoza-Jonas <sam@mendozajonas.com> To: petitboot@lists.ozlabs.org Subject: [PATCH 3/3] discover/paths: Set suffix to default value on error. Date: Mon, 30 Jul 2018 11:48:26 +1000 Message-Id: <20180730014826.19097-3-sam@mendozajonas.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180730014826.19097-1-sam@mendozajonas.com> References: <20180730014826.19097-1-sam@mendozajonas.com> X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Petitboot bootloader development <petitboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/petitboot/> List-Post: <mailto:petitboot@lists.ozlabs.org> List-Help: <mailto:petitboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=subscribe> Cc: Samuel Mendoza-Jonas <sam@mendozajonas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
[1/3] lib/log: Include timestamp prefix
|
expand
|
diff --git a/discover/paths.c b/discover/paths.c index dcd7b49..174bdae 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -186,8 +186,10 @@ static int busybox_progress_cb(void *arg) } } - if (rc != 3) + if (rc != 3) { percentage = size = 0; + suffix = ' '; + } device_handler_status_download(handler, procinfo, percentage, size, suffix);
This avoids the log filling up with "Couldn't recognise suffix" messages if a lot of partial stdout updates are received. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> --- discover/paths.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)