From patchwork Sat Oct 24 18:47:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1387086 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::637; helo=mail-ej1-x637.google.com; envelope-from=swupdate+bncbcxploxj6ikrbsxn2h6akgqeptri6sa@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=jtQ7HKUi; dkim-atps=neutral Received: from mail-ej1-x637.google.com (mail-ej1-x637.google.com [IPv6:2a00:1450:4864:20::637]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CJVTY5cjKz9sTL for ; Sun, 25 Oct 2020 05:47:43 +1100 (AEDT) Received: by mail-ej1-x637.google.com with SMTP id i21sf2262683ejb.5 for ; Sat, 24 Oct 2020 11:47:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603565259; cv=pass; d=google.com; s=arc-20160816; b=uM1qqsn048Pm2C11j58E5GcK+QU8/M75YFFajra1Rj71WgAjL2cHValz5rQYSfXsgT DPhIZw4oUOh68G0S++VgoAI7W03bLozpzhniYQWE9rBbpBV155fUfsfP5BCWsG/vo3ae yfPI8fjbuR87p9rnWP0UKhLymGhAIZZF+SPN1GX+f2fCpuoOT58vZfkktN3oPX/ml+gN gD5mUaMD51rqzFtm0bedx9vcxIDgK8CNo93Qg64RHGIpltNqAn1+Hbq46M7uef0U1UlX lUxUncLS5zz13ddGUILfqHW5M+XQf7mg7IjTqB0Dbb9BXlp0nP+LWAaCGzFidNDZO4dF KXDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=A9VGue2ArlixO/GDB5NA1dV36kFczo4/IHwY1mbVu/A=; b=BD8xf+uuUJfHUbVvR3qLOF8hqAOg+YZqRFRpDxs7rO96pXMzGxH3BG11lTM6PYOl14 VcSvSWw/yUsVF/E7N+PmKko+/3Ejm3XhNYuaIIrSG5O7ZsRBAOsr18iEeR92zhvwQWiu Oi83puvw71bh8DeU/eY5iYsIqxCJ3NyuGCRvVDBaXopZufD3oTh7qxDwKiveraWe9oMz qRTks3AVV9do+xzflHvIGyuduOcM51tKnVMhQ3xD1b8iMabPgu/Mqctym/EGe0uJ2xbB DHMqlSvMOsDI6vhA0U8DZQwmFpB/nB/rrOT562mLWSW82Y4b0JpG32mz6RU9MxSb7W5f Dn1g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=A9VGue2ArlixO/GDB5NA1dV36kFczo4/IHwY1mbVu/A=; b=jtQ7HKUiWKCBoIKlsdaxnTdtDhevJmM5r6igu9uuysqTUTkku9MhFj5R0pjnvYCuDb NYPdlsZHPKD+74PpkweT8U3i3CcZAOZIwAIbqdC0yXbaZ5bzfrBciKhJSJf+KTBsRg9I OjoU4WPr+mkN+aJ1FIggNoyfFlrngrjvRbN/KUKw8GaC/UJRS4xWQB9LHEG83Gwwf+/R f86ovhklD639htTdqR/xRwv8hwoOQOjYvU9j5n6Kn3CBlNLjAcw5OygKEZI3hZF6ra02 qGL/rIJmUMfY4S8HWVZDLb/1rJMMadVtoQUckU2ATBZs65ICmFQxv2QcQCNsy4RrvNKU c/Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=A9VGue2ArlixO/GDB5NA1dV36kFczo4/IHwY1mbVu/A=; b=kyfyT6hUMZGJb4wzb3630d+ebIZVKKQekAAppt3IAbzSDymD5F1CrNER96vppB3+cM Q6iT7BgerJ1xFsLNms4qiJ7vG8AQ3B5CW/A3+gWGMO0dxwtTN1/Wrcr4pUVQtgeFQMcC Z9jYouTQyo7bgBNGCkB4t2oeysijWIBNRd2diefGsK4KrTWWs9bvO1Og8sp5I5v2fGuB daGWDybFWbDuay9stm0It4cs6olO+5ytn+pI/PtVaRZgfZzOs2YLCpUAh2tEGxUl9Ibu 9In5ivRJYouBpoSr3cuRLvEqnnaq9yP17F3KJg/g5wllub3QJpNNc+my7VgaX16YA3GS Z/lA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM533eUEoCgbYPiYHCvsNogMcivgr5eNiZCFQ7ZKAKeinxy9JttqL1 hS7RZKilH4YKOri9xUj3AMc= X-Google-Smtp-Source: ABdhPJzJMT4Q8d6tmFkVzLGG2z+8piMMQjy7pDeese0EUqYaoCdlEFPhXFGGC6KzJrq2e1wFEzGdeQ== X-Received: by 2002:a17:906:348c:: with SMTP id g12mr8322542ejb.422.1603565258998; Sat, 24 Oct 2020 11:47:38 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6402:1d3c:: with SMTP id dh28ls5197229edb.0.gmail; Sat, 24 Oct 2020 11:47:37 -0700 (PDT) X-Received: by 2002:a05:6402:1684:: with SMTP id a4mr8633173edv.319.1603565257807; Sat, 24 Oct 2020 11:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603565257; cv=none; d=google.com; s=arc-20160816; b=VF5FKizH6NaWX7Go9nzqcbdWn8OoAthHP2cFQfbDOdwrWlA/EdZiNiPZm+iHMpG3PR 3u0b9KQP6lfNmiRlQLV0iJg0S0RJC0XcrgCC9rnSwJlHubE8nJ624dTlI2ZOmEd9zg/O KdYqyZ8N7Czeha6AB+HUkEhonmgnRkdrSeWLvinnX2PWCP+mEikFqqWhWtn5PZqw8Q9+ K7vbRUlyJYGXPQhN6WbsCZrYZGMpxEWQdKsjE8+I4wku467d9DnUzww7lKC3BZBcjiIj yzQSW+3CDwqCiQAztx3DJEeaf5n3YfhD/ZyhK5pDhgXeo6m4a37cuDSeiutO63DCmN3D vKfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=iBet23aJK7XFX3ND3/ZIrJIh5yey8xp6yQB3paYSbBg=; b=uQWGi9o3EsMvHNxCKeofrYqJzaCG20zQHbAy+zuj7mkiEzGroroQxhCTLx3rX3TH18 Nelz4qsPwempmri706Dk0G8o6CIqO2lHihtI6e27nt7Hl8HK+Ff5iaFNttBQ9yLv4V/s FeyIPhLeVneOMB83O3FWcZzoJQ0xMIC5AcQTthNuJWuFV+Ntr0IG51395asoS3nrHeOZ +6/9AMifK6Ss2FjN52J4sZoUYqZH21BPvRlxTqMhDJj/spvJdyhkm/7SS+pxgLbIf2PZ QEbEJOAbpnFjE5MfQ8Qe9LWEg3rnW+iHQaaqQ76QJX68whUIiyaeeYcmRcZQnnX0RrVL isew== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id v18si170469edx.4.2020.10.24.11.47.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2020 11:47:37 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CJVTP4GSKz1rsNT; Sat, 24 Oct 2020 20:47:37 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CJVTP3vnwz1qrDx; Sat, 24 Oct 2020 20:47:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id r4Kf3ce31AWv; Sat, 24 Oct 2020 20:47:36 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sat, 24 Oct 2020 20:47:36 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 0A23C4540872; Sat, 24 Oct 2020 20:47:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BESi5EmaMGBb; Sat, 24 Oct 2020 20:47:33 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id 8579E454040B; Sat, 24 Oct 2020 20:47:33 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 1/5] downloader: drop unuseful marker when dwl is started Date: Sat, 24 Oct 2020 20:47:26 +0200 Message-Id: <20201024184730.119506-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Stefano Babic --- corelib/downloader.c | 1 - 1 file changed, 1 deletion(-) diff --git a/corelib/downloader.c b/corelib/downloader.c index fc754fa..462d379 100644 --- a/corelib/downloader.c +++ b/corelib/downloader.c @@ -47,7 +47,6 @@ static RECOVERY_STATUS download_from_url(channel_data_t* channel_data) } TRACE("Image download started : %s", channel_data->url); - notify(DOWNLOAD, 0, INFOLEVEL, NULL); RECOVERY_STATUS result = SUCCESS; channel_op_res_t chanresult = channel->get_file(channel, channel_data); From patchwork Sat Oct 24 18:47:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1387087 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33b; helo=mail-wm1-x33b.google.com; envelope-from=swupdate+bncbcxploxj6ikrbs7n2h6akgqek2yd7qy@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=VW5cbGim; dkim-atps=neutral Received: from mail-wm1-x33b.google.com (mail-wm1-x33b.google.com [IPv6:2a00:1450:4864:20::33b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CJVTY554Yz9sTD for ; Sun, 25 Oct 2020 05:47:43 +1100 (AEDT) Received: by mail-wm1-x33b.google.com with SMTP id b68sf581361wme.5 for ; Sat, 24 Oct 2020 11:47:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603565260; cv=pass; d=google.com; s=arc-20160816; b=irrbI2fYInuaePV1seGkK44t+QAUgBTQJuOv3DprXj7uU7fRSt4avGXFVKF7o3kEDo KWNA6tayCeo9Zsy6FmmMyrmTfPpQx3giMQN1znjKU3MlU51HHjeSvrjKYAEQNutERwUE Q258T9YpTBgCTKdIFe6pgfrx2inQ7v/SoUFnlo47+BQB8aUi1yDFXUec/IeBIaEqSer2 x72JUrmuE79M3bknJ375DjOjbq/IWLpJfO4g5hJMV9DZZ3v6GvJPC5mhnRtD2B5ypGBA vxaY2o1y9j19htlL1eSNgdErrjEafUxtR6iduPaIxuQ0T0woO0dxhSyG3Eu5oD3xKimz J01Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=plm1LkCOhll8+um5LII8tgKBzrK12m1l1IxtcD84k1M=; b=wRypP9hDaprkK1PECCe8M1gEAX03Lofj6wp73u92ayzDyuFRYgwogiuNGRrvZYJZy+ wZvaVj6p6ms9HAr5iVfZWT+HD2Uu234L2JQ547XboR8SH8YDv4BzamYLzXWRrWDJe1A7 vLHnKv5ePdptFMjx3hmWlO0zKdS/P8cjAz59gsiQ2Bq8p02nzQQows2+wkHcivLG7MJp CKRon/evhfX8w4Fe0ZSLqoouvYv2k2r60OiX0s964fp+Rym1R48n0tjPCJqW3InjZLBx cCbeTvA1PkhYjcLXS9x1hRaMK15aVwCRLfI4TbriVwKrep2/n7q0atxy4Gq1fbw/t/MU 9muw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=plm1LkCOhll8+um5LII8tgKBzrK12m1l1IxtcD84k1M=; b=VW5cbGimSQQY9ly9olilB2TQmg3JER0BV5hKVMMLroD7YtgEako0sLaaxONbtyEDOv yuC9jR7TElS9sY0Af7/S8zz7SsxWCK4oJd7UQoo4n49ATuWeNQgoB1M1nTVDk1seccq8 4tzWFCY8GLYtcgg48kQsu5KWA+Ou23AJSMTlFirEWZmgesvE2YNcTWG9IUjZSxf/37jQ zqyd4r4QO5gKKDmq418ihzNcK96383k1CmKtU5QU+z3JVUgk4ZfGQzwCfIGTZ9E4xvW7 Og/Wjrk7PZ4a3uIKVCw52XzC5WaMvLYx5lVQGyMinDa0Ae3n85tHqB4VBxXz66P2u0Zk k1wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=plm1LkCOhll8+um5LII8tgKBzrK12m1l1IxtcD84k1M=; b=iee3Xn2yClypKLLmu3YARYxqF11OQE1KB9h+E2LLGFDoK6zuuB1NmqpZpQaGYcERuV YxHD0ThQqI2UHzGefixxtkkgrFmou5lVg6IiVl3C0a7vsYZB2T81OcHgE56IKt0Ahl5k mTTmEnaJ7FwGRAytQutbFWHh7lON+3v60729heVSTFfmTrCUo1+nvGLAXdo3jKPspLFq 7L1/3yFDvQBi/E9cAD6VolRKmm2MssxhY8fkd0tOX7EkzGiOyqH1R0fsf6eoVFgWO7dT mjJRFJk1UaBx14XykyOPGh9RWAw1sRaG4RgYwrHxt7ow9zcwVk3nADfHKJbt7KlEbEUa lbfA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532KLnoIDIB2HeJj/vq1gRvK0Rlblp5j2tBDJ6csCa5O837jZfEz RmrZ9WymSjgwxIsdw4eQfmk= X-Google-Smtp-Source: ABdhPJwiOyAmUiO3x40/MMbzW7BVUaL19IZFOyCSAHhL+51XRH0kys67nZDSERpGkPnZ1LZ+ZcW9Ig== X-Received: by 2002:a5d:66d2:: with SMTP id k18mr9665660wrw.229.1603565260146; Sat, 24 Oct 2020 11:47:40 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:cd8c:: with SMTP id q12ls2697313wrj.0.gmail; Sat, 24 Oct 2020 11:47:39 -0700 (PDT) X-Received: by 2002:adf:ff8e:: with SMTP id j14mr9383743wrr.255.1603565259072; Sat, 24 Oct 2020 11:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603565259; cv=none; d=google.com; s=arc-20160816; b=VKNfWAbrkort7fYsrCvcd+1O/5nofoZLWPVSkAlMXtIG0Lcx/bCqEVdAKXAS9Sj1+g aLoOX6JnuAYqarLfEVgrwNvf3pc1teOs0AIDI/3r8Wa8K6+9S1n3ytYlRoLuEVA3gUKE nox7oHXnYmHQFQk1vbHhL31NpXnMM5qVLkQDRZu2HZu75gsKp+qn2UqjCbA0NWNC16oK c/f0+2ZzWG5KxsMP95y33Q+fSg2HjVsythd2w+8kTRnW/FHdoTXheWN/0SKzQnOwAysu 7zbqIacdjZRzwCwuezj3blpIsAARXUofnrobybRLIPxuRkPqBu0BqaACfto5gQ8vxuah yP/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=oxznxKEKGeiQ8gU5peqLJBnHzzAd1Cen240wz9r945Y=; b=LoQWS8As9CjK5Ksge/3fL09ByI2BK84tjXdTmtYU1w32X2+NlUhzsEuUlG6YYJulUw nxb42P4yA+iVzTEhMqT3PcnUCdE7NXFCIRvPL/PWgiQxbwGbNNA/pY9nye7YfX6Or++U slnrXVX7Yv9kt06PLpfIPUqLeolXr2nvAiHknm/nypVNr4WoJkOT6nWQRRbLVcWb7JU8 lmyfO2SDB6H5tGqojuz4gnfoUl/PPzRbdeBYASWrGHtT5a5K2/Scx6EAWnv34bqQvadS Phr4TwFNJA1H6KU57HIkwcX3lHmXyIXsTWBZziAoP6/t8P8EBXNoH2d8fneDjvIQPVp9 khfQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id w6si240806wmk.2.2020.10.24.11.47.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2020 11:47:39 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CJVTQ5TTvz1rsMj; Sat, 24 Oct 2020 20:47:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CJVTQ5Gcyz1qrDx; Sat, 24 Oct 2020 20:47:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id OvCCjWenylOA; Sat, 24 Oct 2020 20:47:37 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sat, 24 Oct 2020 20:47:37 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 8F30D454040B; Sat, 24 Oct 2020 20:47:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id x41LtoNbZ6U2; Sat, 24 Oct 2020 20:47:33 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id 9A1C8454067A; Sat, 24 Oct 2020 20:47:33 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 2/5] Rework emit download progress Date: Sat, 24 Oct 2020 20:47:27 +0200 Message-Id: <20201024184730.119506-2-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024184730.119506-1-sbabic@denx.de> References: <20201024184730.119506-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , There is a notification to signal how many bytes are downloaded, but this was later introduced and does not match SWUpdate's design. In fact, because it is not called by the main process, it uses the notifier to send messages to the main process. The notification caused in the past flood of data to the installer, and does not fill the foreseen fields in the progress IPC to forward download statistics. This adds a swupdate_download_update() that can be called by any process. If it is called by the main process, emit a progress message to the listeners, else it prepares a message and sends it as notification to the progress notifier. A new enum for the status (RECOVERY_DWL) is added to let the progress notifier to identify the type of message. Signed-off-by: Stefano Babic --- core/notifier.c | 6 ++++++ core/progress_thread.c | 32 ++++++++++++++++++++++++++++++++ include/progress.h | 11 +++++++++++ include/progress_ipc.h | 1 + include/util.h | 1 + 5 files changed, 51 insertions(+) diff --git a/core/notifier.c b/core/notifier.c index 3b8a432..276e155 100644 --- a/core/notifier.c +++ b/core/notifier.c @@ -345,6 +345,12 @@ static void progress_notifier (RECOVERY_STATUS status, int event, int level, con if (status != PROGRESS) return; + if (event == RECOVERY_DWL) { + struct progress_dwl_data *pdwl = (struct progress_dwl_data *)msg; + swupdate_download_update(pdwl->dwl_percent, pdwl->dwl_bytes); + return; + } + swupdate_progress_info(status, event, msg); } diff --git a/core/progress_thread.c b/core/progress_thread.c index 157498a..1889d72 100644 --- a/core/progress_thread.c +++ b/core/progress_thread.c @@ -25,6 +25,7 @@ #include "swupdate.h" #include #include "util.h" +#include "pctl.h" #include "network_ipc.h" #include "network_interface.h" #include @@ -86,6 +87,18 @@ static void send_progress_msg(void) } } +static void _swupdate_download_update(unsigned int perc, unsigned long long totalbytes) +{ + struct swupdate_progress *prbar = &progress; + pthread_mutex_lock(&prbar->lock); + if (perc != prbar->msg.dwl_percent) { + prbar->msg.dwl_percent = perc; + prbar->msg.dwl_bytes = totalbytes; + send_progress_msg(); + } + pthread_mutex_unlock(&prbar->lock); +} + void swupdate_progress_init(unsigned int nsteps) { struct swupdate_progress *prbar = &progress; pthread_mutex_lock(&prbar->lock); @@ -113,6 +126,25 @@ void swupdate_progress_update(unsigned int perc) pthread_mutex_unlock(&prbar->lock); } +void swupdate_download_update(unsigned int perc, unsigned long long totalbytes) +{ + char info[2048]; /* info */ + + /* + * Not called by main process, for example by suricatta or Webserver + */ + if (pid == getpid()) { + struct progress_dwl_data *pdwl = (struct progress_dwl_data *)info; + pdwl->dwl_percent = perc; + pdwl->dwl_bytes = totalbytes; + notify(PROGRESS, RECOVERY_DWL, TRACELEVEL, info); + return; + } + + /* Called by main process, emit a progress message */ + _swupdate_download_update(perc, totalbytes); +} + void swupdate_progress_inc_step(char *image, char *handler_name) { struct swupdate_progress *prbar = &progress; diff --git a/include/progress.h b/include/progress.h index b4d09d2..738e59f 100644 --- a/include/progress.h +++ b/include/progress.h @@ -11,6 +11,15 @@ #include #include +/* + * Internal structures to be used to forward progress data + */ + +struct progress_dwl_data { + unsigned int dwl_percent; /* % downloaded data */ + unsigned long long dwl_bytes; /* total of bytes to be downloaded */ +}; + /* * Internal SWUpdate functions to drive the progress * interface. Common progress definitions for internal @@ -24,6 +33,8 @@ void swupdate_progress_end(RECOVERY_STATUS status); void swupdate_progress_done(const char *info); void swupdate_progress_info(RECOVERY_STATUS status, int cause, const char *msg); +void swupdate_download_update(unsigned int perc, unsigned long long totalbytes); + void *progress_bar_thread (void *data); #endif diff --git a/include/progress_ipc.h b/include/progress_ipc.h index 2c242eb..8765f23 100644 --- a/include/progress_ipc.h +++ b/include/progress_ipc.h @@ -26,6 +26,7 @@ struct progress_msg { unsigned int magic; /* Magic Number */ RECOVERY_STATUS status; /* Update Status (Running, Failure) */ unsigned int dwl_percent; /* % downloaded data */ + unsigned long long dwl_bytes; /* total of bytes to be downloaded */ unsigned int nsteps; /* No. total of steps */ unsigned int cur_step; /* Current step index */ unsigned int cur_percent; /* % in current step */ diff --git a/include/util.h b/include/util.h index bf8d8a0..b6ceee6 100644 --- a/include/util.h +++ b/include/util.h @@ -73,6 +73,7 @@ typedef enum { enum { RECOVERY_NO_ERROR, RECOVERY_ERROR, + RECOVERY_DWL, }; struct installer { From patchwork Sat Oct 24 18:47:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1387089 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::540; helo=mail-ed1-x540.google.com; envelope-from=swupdate+bncbcxploxj6ikrbthn2h6akgqekkhkgfq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=GzwME92Z; dkim-atps=neutral Received: from mail-ed1-x540.google.com (mail-ed1-x540.google.com [IPv6:2a00:1450:4864:20::540]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CJVTZ1w65z9sTf for ; Sun, 25 Oct 2020 05:47:43 +1100 (AEDT) Received: by mail-ed1-x540.google.com with SMTP id a73sf2289172edf.16 for ; Sat, 24 Oct 2020 11:47:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603565260; cv=pass; d=google.com; s=arc-20160816; b=rvJWiBt1WHyTxgLP0O4LROCR7ErigxyYyP87R/yV5U4OwP4RgyIz/ferkAUQuG39G+ mfznPJuFNJjYaFxH4Lf8bOF4NNaqIBnsGfCu/Al0p3xdrScGgKh70ZIGVHlVv0UhsMOF lMrlag/wxsaLBnPmL43MhyfyyJNdpmyrfGprTiwsMAwyN9RdbRu8JXkqHnthL/AXBIZj Eh4bbk8sjOKOLnbZBTk4bJpS1BT3GtyB+MJxafT8tAQ5e7Z9TurQlJmF3E7ZhFz5iyjg 8/IzDtxzdRZxQdSzoogLlYDxQpB6ZHSv0zV/BdlHmNsz4TsJc+ULBq7dEGkSEXtxKpGJ /69A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=x/fT/VlU5odW9ejI/Tg/AbTYKipWNprE3WNoPASzE2I=; b=i7lQwlX4Iws22jf96bEyAOyyCz5exA/hluV9gGwuRU3wtvgpBIEhQfY5mWzNfzbbVN JOZSyfl0zl7CbeuRIV8TAtK1JMlI1lFGRUWqRSUcZUeU96LUgP7HMVrp2AwyfssbmSbN xdXPy/bv6Zp3YwqyoyCbY98g1ONqUpx/AsxZv4tXWDUm/1Vdi3DGlp84D3DlfFbpvaTL wQrRFtZz+gog1o1AsvofJtSp1EFdeRSnuG9QKXwXHNicxt74H0NWO1D7k3m8+PTIuacg yeo5A67waZwuRO7Qramcm5e2+qOQg+IKS1wyMoP37cPpN+viVaWO4S5hWKLqoKtALvyd GVBA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=x/fT/VlU5odW9ejI/Tg/AbTYKipWNprE3WNoPASzE2I=; b=GzwME92ZyjEykEVS1Gp8BJpXXChP6UnbZkhJHaGZULHex2TAzKTOFwl33rNsCJQv0l 1/4AlVugIHff0BSTAhfsC647mGoBLhn/lnqJZrBQdkz2C1uktv1JOdqhXOX95aapfXml eXPVrJS3qtmbQIxeTvTzUXdyFhzPID8UNHZAxtsumzmax9OiF8SPuXtlnsBEYZ3kM84z r4quO5Fbc4jGBwDx+eUQ090NI21II6R0E2Sl2amRmDyhM6rgaN2xu1GI8dEsPhOFndMs 0EtTvInl6RVB9gg3otYAXVwL/QcRaNPvJktgfyum/llV8e2ZGGjA/LgFTXbm9fQDK3ZR sKoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=x/fT/VlU5odW9ejI/Tg/AbTYKipWNprE3WNoPASzE2I=; b=f/0jInc5gOiQyWdkrjmI2J4fsZzMHHCTgMEw0tv7qtTHBnp6/rH79/bYG3n2OWEhjO 2SpxWBVfStlJOc+dxDYx45rXERZjCfg55RwOyJu1+IoaYBbhqo3ueeIJ23VrXih7vKGE f0tTmZ92LavxJ3mx3v8k6aipDOovxblW/XJ0cEi7Zckp7uaN5feW5yCL8CWpAZBhUviL CrqcBIBUKyd29pV7gj62i7yh7W8lIhojH6CipJ1eUjUfk92PaYw75jBkIyRHLJEwGJ3x lqP4BlKtp00RfGmhHSG+03kW28scqp4n3iagFF254T6Hi7SFoHh0/8fkaEtFNjuLfjv7 J0mA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532+5yfBF+SYEOOzcLTSOjUWle9xyUOnx+5uuk9XxzOBempky8/p RcQHu8ykEF/bljlG42abzlk= X-Google-Smtp-Source: ABdhPJzLvtsFKuRzNATXryITkZCZeNiHS5PXFaDK7Jc0BNFLFjWDoCFb5Ny7phm0TcGHcrseWbOZOw== X-Received: by 2002:aa7:ca4d:: with SMTP id j13mr8086409edt.119.1603565260495; Sat, 24 Oct 2020 11:47:40 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:906:5208:: with SMTP id g8ls2483277ejm.11.gmail; Sat, 24 Oct 2020 11:47:39 -0700 (PDT) X-Received: by 2002:a17:906:a4b:: with SMTP id x11mr8223704ejf.11.1603565259497; Sat, 24 Oct 2020 11:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603565259; cv=none; d=google.com; s=arc-20160816; b=ALwpXfxhbNRwwGZtEioQWwiRB/3JN35SW1/opUCfHquFcWcvCwvedhCOV5t3T6q3LP GjvpbN+8qHdM15qOt8nCPNOjfL68fsk8kfZ5EJVQ4puIZCpPk/uWN6oMKMkLMTiJdR54 /bSandBzM/vgtfMDjTG+MTvtFde9Qsm7BDWEDPjySAZivIgkqHOzboZbCXCB0V9jpP1m zhRcm0mtTrbn10aCkG2gCAev3atF5q08W8GWugH3Lbu2YmnHBiJxGb8pyauF0B61QG3g 9hhejO0oPWq1NMA3GsxxZ1RybTjVi9ll+tbjP1Nj0+aS5vXyDWVpUfxaGJtfVB/+EQ4A e6Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=1+dCEqP4xxgKYjjLjciX3/pgNR93CBpcx4sDq+n8fkM=; b=kKx4b5i58D9gFvIi63idZzpmRdoxbhnFJEUIBe+AlVGqpGxwvIKVt5tIW12vVEInjM N/ldsI8sxezu97RX1fFyilBZUdljcTK6goWwHY6+/2IMKiiYOTws0JAHl0Yfdpf/hwa0 c0EB6hUJfXD5OWUFEsYVyjVsonN35i3GzUnoSIXFYwtDo2fMjJHgKYOxobD/pzgUoP14 GHwFObotT74NdQcfO/L4PunUxZIckVT8d8tXzJKKG35sCf3wh4GUGdRwYKrPI+c5NJpH 3cfS3ToRUdCrzes8nM2/sGYaRkBIMuKT8dBrM0wXC4Gi7lmYgIpj0+HbZzyTzQBPRaaS i6Iw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id lf25si202899ejb.0.2020.10.24.11.47.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2020 11:47:39 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CJVTR2RPYz1rsMj; Sat, 24 Oct 2020 20:47:39 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CJVTR2Jr5z1qrDx; Sat, 24 Oct 2020 20:47:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id nrupQ744z7Ul; Sat, 24 Oct 2020 20:47:38 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sat, 24 Oct 2020 20:47:38 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 5FA58454067A; Sat, 24 Oct 2020 20:47:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZCJpnpjyiren; Sat, 24 Oct 2020 20:47:36 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id B7D4A4540720; Sat, 24 Oct 2020 20:47:33 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 3/5] Use swupdate_download_update in curl connections Date: Sat, 24 Oct 2020 20:47:28 +0200 Message-Id: <20201024184730.119506-3-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024184730.119506-1-sbabic@denx.de> References: <20201024184730.119506-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , This is called to signal the amount of transferred data. Signed-off-by: Stefano Babic --- corelib/channel_curl.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c index a4e9a98..c95b6b3 100644 --- a/corelib/channel_curl.c +++ b/corelib/channel_curl.c @@ -23,6 +23,7 @@ #include "sslapi.h" #include "channel.h" #include "channel_curl.h" +#include "progress.h" #ifdef CONFIG_JSON #include #endif @@ -379,14 +380,7 @@ static int channel_callback_xferinfo(void *p, curl_off_t dltotal, curl_off_t dln return 0; } *last_percent = percent; - char *info; - if (asprintf(&info, - "{\"percent\": %d, \"msg\":\"Received %" CURL_FORMAT_CURL_OFF_T "B " - "of %" CURL_FORMAT_CURL_OFF_T "B\"}", - (int)percent, dlnow, dltotal) != ENOMEM_ASPRINTF) { - notify(PROGRESS, RECOVERY_NO_ERROR, TRACELEVEL, info); - free(info); - } + swupdate_download_update(percent, dltotal); return 0; } From patchwork Sat Oct 24 18:47:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1387085 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43f; helo=mail-wr1-x43f.google.com; envelope-from=swupdate+bncbcxploxj6ikrbtpn2h6akgqevr37rvi@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=JffxTo2V; dkim-atps=neutral Received: from mail-wr1-x43f.google.com (mail-wr1-x43f.google.com [IPv6:2a00:1450:4864:20::43f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CJVTY5DKdz9sTK for ; Sun, 25 Oct 2020 05:47:45 +1100 (AEDT) Received: by mail-wr1-x43f.google.com with SMTP id b11sf3355999wrm.3 for ; Sat, 24 Oct 2020 11:47:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603565262; cv=pass; d=google.com; s=arc-20160816; b=RT8Xxj0VfxxKU7v1dxANqhepslFCHwEj10dQPkvbCcMwzP1vv1gR1I99XYr0F2Fmr3 FZCdVEjORNw5s2RbVDmPt50QATK4apc2j7aznkMsK3aYDy9T1vVUw0V3KaF14Ulu/Ts+ ltRbD6R3AuTISmBYDrDXCeQ0KvTk1qnTjqZ2qT8UHx7LToLcTtlDC7DE4GuNxEOr5hkQ a7mlpkAdwqw77oul8aevaBXejkzdh+dLtVA39dqPM12DUv7w8ZWhzwAskOHwMiQ/YhLx qAgYnQ3BPcXZ4r7iQXnd/vbEfQZqAcJRI0dNykJApHSOTmji9jTdiPNAEDsYUa311Sla brlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=KnbjlkVU0Bnq873DwhjOEHasic4NTQar5qa5WshPXRU=; b=wiip3qObAeut4lDBRU0p9uaT+XjajHWcsg2jUbRYNXsKmjOgWyay8MUkwXdok1UHsB 3IUs3fwo4daRI9Q6dH7CPSXdiYiL6hgZgBk3fzuRfvioYgWtK+ZHmG7onu82EyR82W5p ErAnQQ9a9bUrIO7/8qkIKNVeKyS+Y4jT3gw1rGrTYhO+XnABVDOyk7CiQxx+7JWkqOLj UzWX8vovQ5nHLZeX+YlkJCuOoWUee8oIB4QOveiqhxo5i/b+0R2NXYqhAdN35rzrcCO7 LEuhUyN6FMkNcx9UPWpm120RZvn3+rlXpSPkPTtarYj5FON3lyCP+kctU5RPfBokZ3Yv 2x/Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=KnbjlkVU0Bnq873DwhjOEHasic4NTQar5qa5WshPXRU=; b=JffxTo2VaLUfkwYAEis1EMRLIR15Tx08CKgJ2so20pQmspJAqUJZ0Wo1w+Eun+nifM Pu58yTwNnvUKgEQrSlPJSDdepfVbu7p0fav3qt2TjRTWb+wVT44PoAhCtJ9gF5ZxaN8x LIiq3umA4wna+PU9l39xhjdFf6AnpjblCjOMZkz2gm3Q9LBp/poqd6jriCT8oUnA2RFI YhlODPHoKHXZ1tqCp2u+Z9UfzCyaVzMcfAXudsFLJThZXlozCqdO+rc+5YHU6rKsdFpv qFwjZv+cxYiiOof/+ptkt6NMEQ4tHaLXzCDW+x92nsufDys2ABbkNLV+b2DhRRvcxWik 9u2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=KnbjlkVU0Bnq873DwhjOEHasic4NTQar5qa5WshPXRU=; b=YlQWNquqgZmrNy/MWiikZHIsBpCja/wpPGFsJbM106Z8rwp8B2OlFpAp3YBDjdn033 LkOfCpVQHW6udlXxDTq1kP4fMLXQtWMX+aY6Y8gBSa0o3U2WeJzDYdrOe++9Yt7n25S2 pe+L0smh+9s/jFv5d8odcZu/WcutvonlTjceOxTiEHVTIChubwz97A+kz3/HbngLht7t uB52tGrCdeLow6xSJL2Afg6Y0eN3EniaSHR0bMTfCE7FWdLgrYA5jH8BnbVl8+R3bNFB qT0IFMaZ/cjZP352vdM5+/3wKO5CzzTKb6p+i6oVqXTWnmiMb1IhMK8/j+GaSrDVQ2Iy zk0w== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5335JPz5CWZbZZVsoXRe2YQ/6JH37I5zuCp0jP1AaNIjmjeohxCD bWnGN1ceYJ5hpv2EOU5HWc8= X-Google-Smtp-Source: ABdhPJwJNFWLUVBf7+YgMpx83/c0+aEi7KLuaFdZyS6JiSs9wz0cWAVDPGwFhRxgfiPm1NycDym7YQ== X-Received: by 2002:adf:eac6:: with SMTP id o6mr9474466wrn.117.1603565262332; Sat, 24 Oct 2020 11:47:42 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:82ab:: with SMTP id 40ls2644891wrc.1.gmail; Sat, 24 Oct 2020 11:47:41 -0700 (PDT) X-Received: by 2002:a5d:49cc:: with SMTP id t12mr9497208wrs.342.1603565261309; Sat, 24 Oct 2020 11:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603565261; cv=none; d=google.com; s=arc-20160816; b=Y9cLcvehpxJej9yg43FD7JRo50hdu3PP1czWNzps78K/Jy+SrVMNwOahjbTb9Pou1q tFHQRLIz2cfjhC1wWkECHKODzpow6XjDcbSlWxS3R8Uslhk5X3ixXy/8IU3MPvW4tPu2 BJsZnHgcS8SrRYkjaXOp8SCOqlTJ0F1NEtUI1RtKqTjXoe4+tR5t2PUuvrq4eUPK5DQb tVLtzbUa0BL3/cRaygi3lqgNETwFdhd86UkSTauvmkHD+sSwj2YICUbSshuIYpc5Kd8V SbJAYQP9FxqmqgX/LSAIXSTPljV6NpZp05Z/Z0ZQYnR/GjUVN1f/B4aqBBaYCqUnAGUi g7LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=YRwIFhqYyq3iNaAy/DecKeWMtt4uYLeiBSAGIfxCbXo=; b=JYUAJSdg96/m+ZVRFF0ByMxfcSsoMv9NcSaEtCm2D5sIAx2lNYnRtcoHqX7MVGwMaQ NOj++YJOYp9fGfDLb47zAP+djZZ8XH1W2roxlJwSIwcxnRUTdC8UcULCPHQkhZbKbUPW skFMB/J3sDw8ybWisrFCZZ1aZiOYKclJF6Xo94mk6QuIxGoRvR8F0377jIHZ5S9gfk5q 74jRoNHLadrzqj9B4PwwEKiP8oj0P98pj+3450PI5/itMQ/NcSPjM+4jXeY6NgEiV2xf 0kvbpPgXguUG5IU73VVrFEL7rMQBMmlL3lDFqohi4Rwxo+HR0KsndcK9FqZ7SRAVV8DO 1ozw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id 16si183798wmi.3.2020.10.24.11.47.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2020 11:47:41 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CJVTT0bSBz1rsMj; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CJVTT0Pzvz1qrDx; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id I3u7zjwFjvWg; Sat, 24 Oct 2020 20:47:40 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sat, 24 Oct 2020 20:47:40 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 0E4CF454040B; Sat, 24 Oct 2020 20:47:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id cZqA6pMP2qz4; Sat, 24 Oct 2020 20:47:37 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id D90BA4540862; Sat, 24 Oct 2020 20:47:33 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 4/5] hakbit: missing initialization of msg in postupdate Date: Sat, 24 Oct 2020 20:47:29 +0200 Message-Id: <20201024184730.119506-4-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024184730.119506-1-sbabic@denx.de> References: <20201024184730.119506-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , The postupdate command checks if there is an info message and sent it to the progress interface (with a "DONE" status). The missing initialisation causes garbage on the client because a valid info message (length > 0) is detected. Signed-off-by: Stefano Babic --- suricatta/server_hawkbit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/suricatta/server_hawkbit.c b/suricatta/server_hawkbit.c index dbe18a0..42e8569 100644 --- a/suricatta/server_hawkbit.c +++ b/suricatta/server_hawkbit.c @@ -1415,6 +1415,7 @@ cleanup: if (result == SERVER_OK) { INFO("Update successful, executing post-update actions."); ipc_message msg; + memset(&msg, 0, sizeof(msg)); if (ipc_postupdate(&msg) != 0) { result = SERVER_EERR; } else { From patchwork Sat Oct 24 18:47:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1387088 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23d; helo=mail-lj1-x23d.google.com; envelope-from=swupdate+bncbcxploxj6ikrbt7n2h6akgqegcor7sq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=CGGc6eYn; dkim-atps=neutral Received: from mail-lj1-x23d.google.com (mail-lj1-x23d.google.com [IPv6:2a00:1450:4864:20::23d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CJVTb5rsCz9sTm for ; Sun, 25 Oct 2020 05:47:47 +1100 (AEDT) Received: by mail-lj1-x23d.google.com with SMTP id f4sf2495208ljn.2 for ; Sat, 24 Oct 2020 11:47:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603565264; cv=pass; d=google.com; s=arc-20160816; b=m6KAKtSTsyb8TTOcUSA7cfLTdHps9BJumHap1Qq6Ltns2PnUezOqXhVW2EiH3rbo77 HrtDe9loK/CSekRpTvDavBaeerSmdwwJHpsONHvMExISiXuSjamvUZlh0BqYdShWRLba wKhaNCn86EGvt7Sw7gf+JsSHjO9tvSm54AlLqwA0bKcn9kqQ7+dX64wIZMjWTpWLll6h KCQYBZT0XScLA1cni9FL14WmfBqlD+8kQtyJL4IOA7ea13DtkB9ubpY0kY2Is5HTF5Xr kMm1W6XqMI86Rjx9NdTspCnk/to1HhgByaXM8QOgZX9Q0uIL1Ma+g7Wokzooxo9Kpri1 euow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=R9cgSDf40ncSYXftmb2bPdLwANd8vqnB7uJVi/O4l4c=; b=mdYfh9c30ukXkwTWTTZyB3VCtkEtEgRVe+vXgGTLMMKiyNuA1g7wALw9K3t8tYKPjH ONZI6U7ZGPHwVGofFe8/l2Fwsd0o9juLAhgEudh9em13sXcIEdowwOND6ju2uzj/NyV5 /kAs/df7ojGvusR7TLsv4eTpQuoYRiIjghYgRVM9HKC+kSjTd9NZBeWXYenbMQmQeXv6 j5qLmc9f5m1lqXXAfWDOeBja1oqQSmKkSXz4E3XTB/cldYPjI9SSRNCy4bfcfbi/izkM BtFS0d5yFe8zZkldTlD7XuleAtuMDC6XQCy6RjtnhCanxssbVa7gVuWyp3rpM2hbPAhW Fk3g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=R9cgSDf40ncSYXftmb2bPdLwANd8vqnB7uJVi/O4l4c=; b=CGGc6eYntLBeUj4UYRt+35T9MD2uuupldWd+Qs9pRmZZ6lAz0hBpIkaZKtCLMaN+VY Vo5BBDgQ1137H4EPoy0WBkQ3Hd5m4Q2Nf1KYDzKXnp/mUn23Y6zs16UYxe9cxDWYsFyf OInbBkqtdbkB71aJeJgex5PFoooNLUyFGXuotnK+cPQ/l3yqH8qi1JuarMd0/s8eFTJa gRF1sf3fqMbSp58l+Ea7GNoPisfJM5CU9yBReH7W7pY1UEj+DUBJ8UF+YG83lktYCz2Q YdEQjQzSB+k0yC196TPbl4+5vfWbJCtRp+9PfrlNToSlO5fsqYi7R/lAdbTJPwgtV9j1 83mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=R9cgSDf40ncSYXftmb2bPdLwANd8vqnB7uJVi/O4l4c=; b=slrQBtTskFdOsjQwkIQqbPbgCElD1MttUNouaQ39QBa7EO1LIg6N3/HTz+MgWkbxFD IkHxZqCG93/3SaTrmbU6pPOkSkiwK2RSsOvgh/u6f9F7yVw7F2GU9oCPUt9v0xI2PsdD AhHUhVVA+cLzMWd8msCgtMYx9o1jFj6rbrU14LxLcmMfxxC4skS9UTPuj3298e9sNYte 6GJOd+uLPAiyojpNlg9gN+XKHHPhX8rSu7qyBsvdyAW0dAgw94gM2o0RPvKx6LM21juK WXFDfcY9lWgD9geeGFwV6cYR9hRxaF1V8Yn1xYC7WF9pPMBjTo4GRpmeCseWPcQuSVzR LE1A== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531BnYnrYlP5FDn9ZDBAW+l44BFfWYt1KmNNrv0NOi6S0yfoW3Hw q99l7Azq9ppuct+4XbSd0Ww= X-Google-Smtp-Source: ABdhPJwviNsy8iCeaCOvINpC3TnxX9CouLRoK+lhkCgZqgtxCBs+qDbkJUwNWl8IYdiDZ7epweaXHg== X-Received: by 2002:a2e:8515:: with SMTP id j21mr3011963lji.419.1603565263899; Sat, 24 Oct 2020 11:47:43 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:c111:: with SMTP id r17ls2397119lff.0.gmail; Sat, 24 Oct 2020 11:47:42 -0700 (PDT) X-Received: by 2002:ac2:519a:: with SMTP id u26mr2800111lfi.73.1603565262576; Sat, 24 Oct 2020 11:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603565262; cv=none; d=google.com; s=arc-20160816; b=X4V8Mkn7pLWd350XAWVEbDjCbxF7jNUY7EZUc0dEz11aapbA1JoZknztDzyCec21jP NIyE4exTObgRfH5MTwozzokxlXIatei6vWkt31RuB7k+0dltR0ICr7b9NCTLj3+bczdt dMIW4sKtKBtmbl+loWokfV4w91z460/uJHH5bTluK2FbJ9BUTEXD9C1ivREk7SRuT5hG 2PYltOKRqptGO+nRlHt4ZPP2lQ3EUMCkOkLQgs7XRwV4DKPJTLoNgp4bkbeEZBZ4dc4q vV+uzGnTl4b10fmSNYoxX0EjpyBcDbmoUgk+BCmjro+hguZfly71cv9XOEtItm8gGNAT 5K5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=FEtJvmLis445Ruxvg7DcDl0mp4plv6BlTBKMSrIcxxA=; b=NKR80X4e84k45uev9g8wV9nF34ja76+rCdBhIUI9WGhkUEppwvWGlR0PfD62NzWv3R AD2v9jDd1U4RtK5i0oAlhpAPjeu633bLv7ONGqlxVxtniMGP3oIFpZIKyI3Y8ZdFmSKz KihjcEempN1x7iO+3w6BFGJo8G5+k1bJFQPpMSFRpL82tSpbTwdt8YQoY5kwVPsDQOxm Zs3zR62azxcJMBErJfGvixJUnpaDle4BHR1p7ZNB9j9rOramsHozCIG7JgGfOHZRbiE0 cj7GpDrJsiS2woeaXTD8IE7AlpARZMC2LgGEW2Z1sSeQsZC7yamlW1fm5MJ77lGpWf+L BC/Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id o142si124372lff.6.2020.10.24.11.47.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2020 11:47:42 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CJVTT6WlQz1qrfr; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CJVTT6P3Xz1qrDx; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 9dTwBg16OACG; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id C4830454067A; Sat, 24 Oct 2020 20:47:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mOpi7OqVaOKG; Sat, 24 Oct 2020 20:47:38 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id 09138454086D; Sat, 24 Oct 2020 20:47:34 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 5/5] Reset progress values after Update is completed Date: Sat, 24 Oct 2020 20:47:30 +0200 Message-Id: <20201024184730.119506-5-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024184730.119506-1-sbabic@denx.de> References: <20201024184730.119506-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Stefano Babic --- core/progress_thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/progress_thread.c b/core/progress_thread.c index 1889d72..af3a09f 100644 --- a/core/progress_thread.c +++ b/core/progress_thread.c @@ -204,6 +204,10 @@ void swupdate_progress_done(const char *info) prbar->msg.status = DONE; send_progress_msg(); prbar->msg.infolen = 0; + prbar->msg.nsteps = 0; + prbar->msg.cur_step = 0; + prbar->msg.cur_percent = 0; + prbar->msg.dwl_percent = 0; pthread_mutex_unlock(&prbar->lock); }