From patchwork Mon May 30 23:57:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1637173 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=J0I3LaaK; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=F4qB57VK; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::53c; helo=mail-pg1-x53c.google.com; envelope-from=swupdate+bncbdulzynr2qmrbyft2wkamgqertisuiy@googlegroups.com; receiver=) Received: from mail-pg1-x53c.google.com (mail-pg1-x53c.google.com [IPv6:2607:f8b0:4864:20::53c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LBslm0FJRz9s5V for ; Tue, 31 May 2022 09:57:23 +1000 (AEST) Received: by mail-pg1-x53c.google.com with SMTP id d125-20020a636883000000b003db5e24db27sf4713313pgc.13 for ; Mon, 30 May 2022 16:57:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653955041; cv=pass; d=google.com; s=arc-20160816; b=Gp3proU0Tj5WyShI6XTI3U/Y5b/feUxvvGyKIrc6vvRgJokg+7gHxjHxcQaErah4sx U5Ci8ndv3Ce28Laaw95VxfNC+DFVHp7xN6oxI2nbza3N/nOcUWcOlM6rM09oLt1QEQsL m9iN1T4qWrR+pyhwdMbiGlktP5W/em4STi1W2FYF3XqmaUJ4fMijCM27C/0kN3QjZUi0 Om0OwY1PZywchhgUjCoMebFbynD0eqOFYwfxkB9/mDq9uAoTSC7aZ4gZAHpMbqAf9chE g52qF+YGw2r2L4C5kwiS0NOH8T3qqMY50DWZ6n+IYwaTFw5mn+4ukvpiiQIcoL94Zwem L28Q== 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:dkim-signature; bh=F6I9hzYtw0EDItDFmVk8WtYZlBsWNeEE1CQ+Psshb3I=; b=jEGTeEHX/1Vv4SQHowMX4Z6tl5/CO2NL9qSd32UY8pB4aAwkoUmH6LWRbzt7MK3fAB HD49ZcakzN8IohJLlmdOufeUweHIGb5q1nststlNz7w4s4cbjxggZug5ltMfN4Nkg1Gu EJtc3qlO40YNxZG1B4rchC15eglsAv7cfaRod+r4F6JqVgZVwONUHGldCnS+vFbYXKuf 1Qyw6Kq+CSfTtDqPBkOHFRhtT6cekY8FMff0UUjT9ETwEDsWjur6v8n794L6Pcy49uHi c6bJcGu88+EDPX5UXSCNu0Wsf8q/XkjzEi9pstxFjIsqhu7ryH7XAN5B/67z66B3U8nC QQZQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hBi2Aj7b; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=F6I9hzYtw0EDItDFmVk8WtYZlBsWNeEE1CQ+Psshb3I=; b=J0I3LaaKmxgcLji+slnfZ+UqbtvQdPsy/AiUeCoB50Kd7mxVB9Og0hoRXBQcIkpMHn e8YlC7v+jbXc+3HTGJAkhfukY0txbAsQ6h1xmrJFMV8RErlArUpxSQ9nUAojdN4c2DJz w1ycTeAZRQqpGe39DW8fL4uK+jVQ9xJVOHJ/GqFHKh2IMcHEybdsIR/kBcBhyYAzErrQ qY028LUOFybMOK4XDCGGOldzv65YNltNVwwELVQE/fqY9zS243d7R6YYAAK0UKHDDg/x AMEPlvzysdBS4rcrzxLXTO1HKfjLPnIZrs7dYf30wt9YwLj1DclqiSjIdNHDhq1kunMp OWvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=F6I9hzYtw0EDItDFmVk8WtYZlBsWNeEE1CQ+Psshb3I=; b=F4qB57VK7LTE7yTB1nmpSdYa7JJyNNJbS5KfEdBpru2VVE2rxWjbx9lqhA3wIyOlh6 i05poszBcCJb8kM+UXQuZOrYVE1fnupFBV14VFUlAE7ihZfdk638FOvRa2kDucWE1yjR /TvJH4VBmyxMIBv4VKkp7dAFnZgwNmV87q/LweC1l7/VxfdftipjcAHyU/59TWoKwU1V dz0xsOVGHKie+DajPO11SiWksR4MLtvP2GIo5PVFlSTGdtdpTabMzkdAkf/f6+RcBVbh hd0ngkr5IyGfvXFTH1k/6yR2PS9xApmCySneUdNiprlavLNCvneFXQ6wtHh/ksgu5gzn zDjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=F6I9hzYtw0EDItDFmVk8WtYZlBsWNeEE1CQ+Psshb3I=; b=ZBIdswxyufjCQf5puhz9QB8yMJSgchQKsIeJKO9RyFbjFdz2NpiI9INNLBPTo1WeaQ 7gUgjbOxlkLSiEh0StdB3AB84KP6ox9yrQE5ha45k4BRZTbfewdeqUL1P/JL1piZelNb DRh/JHQV/3RCPBorsM7OOxlyxKeW8ZUILRVv1zVB16wFzZIFbap27WoTuDfxgn8rqmY9 EZ6EC47wAofcTvwef+IPdaCgR+C0dUCDl5YeLFe4FjNUjFZW8Tcy7CR+nNzREtz+SNnA LBpZW8JG5pNCUmXeTFgg1RW3FOO1BltdyoJ3J72YyroCTaHrPgjuEeyDMFSJaWcA8Sbt 1UGw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531rMLPdcLrvvgYfJswAeShP0cEGJao1LJXgtqPG13he2PYwuJoT m9kvJw7+Idc+NW5REZALZWw= X-Google-Smtp-Source: ABdhPJz1ng5DteUa4nge3ze754VezwnzqmLI994TjcyCB54yAOp489t5gi09XcKRnTsMylc484OCuw== X-Received: by 2002:a63:241:0:b0:3c5:fc11:ab56 with SMTP id 62-20020a630241000000b003c5fc11ab56mr51154036pgc.193.1653955041008; Mon, 30 May 2022 16:57:21 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:902:e5cb:b0:161:b7e7:4c01 with SMTP id u11-20020a170902e5cb00b00161b7e74c01ls12315435plf.5.gmail; Mon, 30 May 2022 16:57:20 -0700 (PDT) X-Received: by 2002:a17:902:f607:b0:161:5f47:b213 with SMTP id n7-20020a170902f60700b001615f47b213mr57940424plg.4.1653955040257; Mon, 30 May 2022 16:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653955040; cv=none; d=google.com; s=arc-20160816; b=behES83Cu5upBK3DxkDTinjeD899xEcUSoRAXlWDYPr08qRCWwlolRlpW5+AfasX3F tLXiRsVTUi6JH+7gTjhP8Hs8x1jPnucNWahvwHwficCQV7P59dbukSQC4XLy8pZULOcT pzeSs4hI8o4SnbC/D1afO9pLzeAdxqHTDobazrOYPzo7oGqnRVBACqLUp/eOBezwilHh DWO5Tj7xlRWzsV7jwEKOc1iL9YtylXv5Zu8igncDxghdIt0zv9fSTyDoaWQRvG5dEJ7O er2vSr2Ep3Unqp04jyYNqdkffFQGnQHDp/HHUk3qGHPxKXVeiJ0ZBBRRoP+xwQqfsqxN 5big== 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:dkim-signature; bh=RQ6M6iLqUlTk0NgvKj0I+B0DqyMd1ir6HVeUa8HUW/Y=; b=S66YW6OEchITSz1beY4vpWc6rbnXDlKlwshQ0hAAHIMyYbaNV+a/wLNhXxfLuAB1Vi 03rP9d3xVI6h/wVzc8pQpbyjDMwigUvzFnvW8/FUNtvR7szxShaBRRdgkEVwUJi3rQs1 f8Ld+Zx3vANqpg7vc6PoKX9aaiG1OV7zRIE/Js64W1Q0HgoVm57ObBPLD8FPQH3u1t28 cBQ+gdzUPbsI8w8xD2JeJbnvOv2YJD0SzztN0sCSwtwfMhXYHwBrjRxT6g/9eMf9YxyN TNJxGhZPOqbbU3sCO9ETtiJ/slneXropgcZedJ+qDp2jzMY5ZwxG/jx7uZzOpKhpA78Q my7A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hBi2Aj7b; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com. [2607:f8b0:4864:20::22d]) by gmr-mx.google.com with ESMTPS id iy11-20020a170903130b00b00163ebd072bcsi128099plb.6.2022.05.30.16.57.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 May 2022 16:57:20 -0700 (PDT) Received-SPF: pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) client-ip=2607:f8b0:4864:20::22d; Received: by mail-oi1-x22d.google.com with SMTP id r65so10558550oia.9 for ; Mon, 30 May 2022 16:57:20 -0700 (PDT) X-Received: by 2002:a05:6808:1390:b0:32b:8056:77 with SMTP id c16-20020a056808139000b0032b80560077mr10744414oiw.176.1653955039526; Mon, 30 May 2022 16:57:19 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:485:4b69:a81a:c52e:9886:b625]) by smtp.gmail.com with ESMTPSA id t34-20020a05680815a200b0032694a9925esm5151659oiw.10.2022.05.30.16.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 16:57:19 -0700 (PDT) From: Fabio Estevam To: swupdate@googlegroups.com Cc: Fabio Estevam Subject: [swupdate] [PATCH] cpio_utils: Improve warning message Date: Mon, 30 May 2022 20:57:17 -0300 Message-Id: <20220530235717.2181849-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: festevam@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hBi2Aj7b; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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: , From: Fabio Estevam When the deprecated 'compressed = true' is used in sw-description, a warning is generated to suggest the user to use the string form. Improve the warning message by stating what is the recommended string format. Signed-off-by: Fabio Estevam --- core/cpio_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cpio_utils.c b/core/cpio_utils.c index e338e4d88df5..917935200cb9 100644 --- a/core/cpio_utils.c +++ b/core/cpio_utils.c @@ -503,7 +503,7 @@ static int __swupdate_copy(int fdin, unsigned char *inbuf, void *out, size_t nby if (compressed) { if (compressed == COMPRESSED_TRUE) { - WARN("compressed argument: boolean form is deprecated, use the string form"); + WARN("compressed argument: boolean form is deprecated, use compressed = "zlib";"); } #ifdef CONFIG_GUNZIP if (compressed == COMPRESSED_ZLIB || compressed == COMPRESSED_TRUE) {