Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1109767imu; Fri, 9 Nov 2018 11:04:57 -0800 (PST) X-Google-Smtp-Source: AJdET5eYFoeYVN7K2dZPy8DEEL7NnQCiI1Wq2r+ebNsiL5cbDjGAVLfnTYhKWrfONtGlx95YJLbq X-Received: by 2002:a63:5f41:: with SMTP id t62mr8561059pgb.76.1541790297758; Fri, 09 Nov 2018 11:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541790297; cv=none; d=google.com; s=arc-20160816; b=dYQhZ/AqPiIM7/bTNRlDzdLWvZQWXnY5SNXtO1d4g7ZLF6HjffKpxVjkXp0zcnRI4l iKJzvY2Ow9CXZArXj0lXVHFDZcdvJDFKDz4D+7eSMrmC7fRGGA9Oom+/wI4j8ZLMKbH+ 8/GUdfOZdSXW4j48ZVm71XCNfR6SJkOZMNgdG0+gMuO7ay8I7SQwxSSTz39oE7HVTIfB Yq++Fnzn5/AlVQ8jEfoMSF8qyQHhSdzGLORcUPfQLR/z8hhzEn2a5CnS4hSorfyAl6Zs +nBSydScJKr+HKB9z9KDhEFG6xYxrWgWypg5sUjxbpaZLPlCtwblnkOwjvThql9mMyHp Q0bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from; bh=0m0IHgK/AAufJaOVVUh0dLLEqHWw9bFo0nkOBJ+jFbU=; b=MOJeMF2jOBWm10jwp50yLZZ45gkrEp9aB8QtqQbxXGDudO8yXdyMXd8phjtrRDICPr aE51ZyLdlWlviMQEriMzugCWqFHdIQlFefJTUJsyJOeHgN+woepe3ZAQWObf7+IUeRQt AGovYbk6OT7LWy+L7Yueya8QFnv0CAch4gGjvnGw+c2vKoVzMpMGrQbM58Y1QGbB6Ger IDXULSusAnRxlTzCyJ+38fJQS4byGul17JrFoSYyY59I9azkBEKTm57OPbC2aLp+u9kJ dhU0Q8jNIJDc02lKkXst/XVH78Ol0vp/ZpUcipJts4eusbQ2JHGj+L3781ho9Iqf0/Dl 0pXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i26-v6si7632357pfi.288.2018.11.09.11.04.34; Fri, 09 Nov 2018 11:04:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729048AbeKJEph (ORCPT + 99 others); Fri, 9 Nov 2018 23:45:37 -0500 Received: from tartarus.angband.pl ([54.37.238.230]:51866 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728683AbeKJEpg (ORCPT ); Fri, 9 Nov 2018 23:45:36 -0500 Received: from 89-64-163-218.dynamic.chello.pl ([89.64.163.218] helo=barad-dur.angband.pl) by tartarus.angband.pl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLC48-00059d-TM; Fri, 09 Nov 2018 20:03:38 +0100 Received: from kholdan.angband.pl ([2001:470:64f4::5]) by barad-dur.angband.pl with smtp (Exim 4.89) (envelope-from ) id 1gLC47-0005AS-F1; Fri, 09 Nov 2018 20:03:36 +0100 Received: by kholdan.angband.pl (sSMTP sendmail emulation); Fri, 09 Nov 2018 20:03:35 +0100 From: Adam Borowski To: linux-kernel@vger.kernel.org, Nick Terrell , Russell King , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Ralf Baechle , Paul Burton , James Hogan , linux-mips@linux-mips.org, Jonas Bonn , Stefan Kristiansson , Stafford Horne , openrisc@lists.librecores.org, "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org, Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Cc: Adam Borowski Date: Fri, 9 Nov 2018 20:03:04 +0100 Message-Id: <20181109190304.8573-17-kilobyte@angband.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181109190304.8573-1-kilobyte@angband.pl> References: <20181109185953.xwyelyqnygbskkxk@angband.pl> <20181109190304.8573-1-kilobyte@angband.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 89.64.163.218 X-SA-Exim-Mail-From: kilobyte@angband.pl X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tartarus.angband.pl X-Spam-Level: X-Spam-Status: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9, TVD_RCVD_IP=0.001 autolearn=ham autolearn_force=no languages=en Subject: [PATCH 17/17] [NOT FOR MERGING] lib: Be noisy about used decompression method. X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on tartarus.angband.pl) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's too easy to build the initrd with wrong options during testing, after which it may silently work anyway. Signed-off-by: Adam Borowski --- lib/decompress.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/decompress.c b/lib/decompress.c index 95f39a14eb7b..345679312a45 100644 --- a/lib/decompress.c +++ b/lib/decompress.c @@ -69,7 +69,9 @@ decompress_fn __init decompress_method(const unsigned char *inbuf, long len, break; } - if (name) + if (name) { *name = cf->name; + printk("Decompressing using %s.\n", *name); + } return cf->decompressor; } -- 2.19.1