Message ID | 20200202133615.23769-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRB7FA3PYQKGQEKUVL3GA@googlegroups.com> 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+bncbcxploxj6ikrb7fa3pyqkgqekuvl3ga@googlegroups.com; receiver=<UNKNOWN>) 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=US3O3g6s; 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 489X7R4qhWz9s29 for <incoming@patchwork.ozlabs.org>; Mon, 3 Feb 2020 00:37:05 +1100 (AEDT) Received: by mail-wr1-x43f.google.com with SMTP id t3sf6551530wrm.23 for <incoming@patchwork.ozlabs.org>; Sun, 02 Feb 2020 05:37:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580650620; cv=pass; d=google.com; s=arc-20160816; b=XO9fRzcczkdqY+JK4U/cg6LasUdYcP/pbO3griufuB1OLEum+1TZKTwPBIQO/Cvw54 kNZGorU73qTTZDMnTvGn33krZxfwLPSof7gDvBhn7mZIQCa3YGlTYRb2p4t5p7NszfgD 6qvikLrZdvtICahhi4b8o1pUUpKFURg0XDhOFH11REA0w7GohhBAMakozj6WnPgbA2iO Hk3wz/DbCMU+N4F3j9h8sifBZWEJ5I1IBA1WIvlo4pETdUZiwpgTb6MADexOWahwVQ03 ljTn12ozSwaByYOC0cuyujskIxccq2W552D88MJ092FJCD97jp07pq+NoUeFXjPgKSYU /D3w== 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:message-id:date:subject:cc:to:from :mime-version:sender:dkim-signature; bh=OzvHmvGXzPpXGkuiKAkSyVyjyaHg//ZG9vmgE4j3w/k=; b=o2r0aKkf2DzINbrvobNA2k7H42BTwOdQQuUto6Gmzr50j4zYU+9MUq5MC1ocvG2lVJ a8cHaWognEWBtsmGtJG8mlaYBOGfaUDuyiCTlZHc4MR3iQUsuwB0aEm/RIoObeuLlXBq Do0GZAkEzhXeZxl5YDG1sEK1Gf3lh5fJ2et8EdlL/+VY0wstzOrkgOdCpGbfivF0z70R WzDvpPcrxI887YeUr7Iz7ryBwm6yV05Yfob6TQ9X9mx59zzGIVo03Gkbazmp/TZ7ts5y tLzIdEZ37LcKXmqHr6t0CU4ptlSKBbRG45XIxe0nELcKTmAIKuGPZCfP+tNEPJ7/O+OO SoCw== 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:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=OzvHmvGXzPpXGkuiKAkSyVyjyaHg//ZG9vmgE4j3w/k=; b=US3O3g6swE4pASr60E3Z0mW4NV0hMo6Jdt2a30ax+h3Do6t+leyGLCy1ovzCCRt/ub 8RysTgWCjZjpJs+y7vjinhPfEe4b4E72R8GHptkFOQIZu2mfqU/XaYykId9DMCR4weAg NUN/c0Oxyn4yrPaDCPgSWbOZ5UOj5anNrb1OhTdcLjGdgF+IQGg/rvs+2iET2KnShPHE tC/OICyBEML7iN6MQ3NXFR/uKMkRHQY9sfeeJwe3xaEtGCprxTXgHm2WYcaLep3bsddk 1NWBCDWTeulFN84IrL1K8LLsjeMzAPAnXVFL0BPyByRf6xj8j2/8TTBfE3c8RdpSYlsd L2IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id: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=OzvHmvGXzPpXGkuiKAkSyVyjyaHg//ZG9vmgE4j3w/k=; b=fv30aBy2rFg5UASCfaXO2lYc/rcZkCmRtyduGHy5/VSbX6J1sH4kXoVuP26Q7OfeEx j/lop26L/fSAjG9XXYmuv9VFGEAhuLco+gK2WlnFV4a+om83OMNk2TLgyy+cPb2j/BgI JyXG9XQVYgAYE4XSiULc1SL5ei5mRw0wAa/mB65FfFf0T3VYKqa6RL8Q6tMEpvLmvhOV iMI0ZlM9rKyhSLPqCK2f5aob7Khgjd6Nzc4OtEd20eiC86f/hqX4NJUZSKeYHbgoBsjJ 0I0Ylc3eiYvvWSmCUB7eJSaLr8TIRKzqLrZ5SknstaDr/DRmKg7snMqJfyrZMU078a0K 7d3A== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAVsCamdUajsJ9LsnWfhd4Zgl3jVoZes1GI8ZPGyDUrtwrWiQR0d aEoS0WJCqxSdBBqY3Anw/h4= X-Google-Smtp-Source: APXvYqzqHkj/eSjjU2e3mbu3/l/bLoCGsk+C3wX5T+CkzXeLTMjeoPSfn9ZR2h+yB8mfdLSl5bXFVg== X-Received: by 2002:a1c:20d6:: with SMTP id g205mr24585606wmg.38.1580650620408; Sun, 02 Feb 2020 05:37:00 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a7b:c452:: with SMTP id l18ls9189868wmi.1.canary-gmail; Sun, 02 Feb 2020 05:36:59 -0800 (PST) X-Received: by 2002:a05:600c:2383:: with SMTP id m3mr24532855wma.32.1580650619817; Sun, 02 Feb 2020 05:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580650619; cv=none; d=google.com; s=arc-20160816; b=F2O7HzbdtwTeSG5kcsNOGlWbP2GglA2OLaGOVpGXmdsGAYzV3yvCUcZU9YvWJQisZP tl4ILFp2NqRK3RO6Vb5Nb+83p8kcEF9uAvymJpKsZEJRr+Yt9UUR+Pzkyv23WFGdkwQE B7OCwG5IZhDEfHCGlW5ki66Fyl3tYBV3+zTVhp98R+6f+WS6jwP+d5IiTkzVu6EaBXCD MQMHzFEx9wWbMvbTHnvXF4jrXMCQc/43l3wQzN+oN4saiZbhpW2HpvePQ1itU4AwS3XV qxbn+aPB7q7VEv0RCdhJNbADv+3ztqyL0a1zCBqgSs+v/frZPNo4qepr0AfGZ+EdWMJP Gd7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=Z9Ct9llDcTAk0QfyycFIxZcOTz6iBcfHALR7fhO7Tl8=; b=JwpDGfrthytTxizwTduiLPYvAgepR2jUxbUebZ6Pt/yeOnmKoSM1RdsNhNXqB8I0JQ hxyxcq+urAbxTOs5/OXO/Ubfz9qozwChV/upH97qhry6wWrvkGgWQl7OBb3YvWYB5JJe L3FGnyBDXQuM4wgzxva39YM2zxQCHeE1OlFf/gjTvVlAqGo+ObZ+nJsWq68JRZOn3512 n0LbUz+tTV7zLSfyIx/p6jm1iSxcLxV46zI5fRtYZihmANaY/2O7Nzk2cc/6sV0lSfsJ mhLGcSgtma9b0ujL1KQmrbHClXjtwYbTODNnMV9w4i18YldM31DeH8Z7DaDhZevWX/bv M48A== 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 u9si657624wri.3.2020.02.02.05.36.59 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Feb 2020 05:36:59 -0800 (PST) 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 489X7H4CGmz1rpG2; Sun, 2 Feb 2020 14:36:59 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 489X7H40cqz1qqkP; Sun, 2 Feb 2020 14:36:59 +0100 (CET) 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 f85voSgA4X_v; Sun, 2 Feb 2020 14:36:58 +0100 (CET) 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; Sun, 2 Feb 2020 14:36:58 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id E62894540B04; Sun, 2 Feb 2020 14:36:58 +0100 (CET) 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 kzVNjGJRadLC; Sun, 2 Feb 2020 14:36:18 +0100 (CET) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 4B5DC4540379; Sun, 2 Feb 2020 14:36:18 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH 1/7] Send version string to progress interface Date: Sun, 2 Feb 2020 14:36:15 +0100 Message-Id: <20200202133615.23769-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 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 Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[1/7] Send version string to progress interface
|
expand
|
diff --git a/core/parser.c b/core/parser.c index 74b6a74..38d4973 100644 --- a/core/parser.c +++ b/core/parser.c @@ -339,5 +339,14 @@ int parse(struct swupdate_cfg *sw, const char *descfile) */ swupdate_progress_init(count_elem_list(&sw->images)); + /* + * Send the version string as first message to progress interface + */ + char *versioninfo; + if (asprintf(&versioninfo, "VERSION : %s", sw->version) == ENOMEM_ASPRINTF) + ERROR("OOM sending version info"); + else + swupdate_progress_info(RUN, 0, versioninfo); + return ret; }
Send version retrieved from sw-description to progress interface when an update is started. The string is formatted as: VERSION : <version string> Signed-off-by: Stefano Babic <sbabic@denx.de> --- core/parser.c | 9 +++++++++ 1 file changed, 9 insertions(+)