Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp120534pxj; Thu, 20 May 2021 05:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJya6L6lmgUBYfy0j84mTNU8l2AmbUkVKhFhZn97zx26kxxroN15BNLpzViJzWh+b0Lmo4C4 X-Received: by 2002:a5e:930e:: with SMTP id k14mr5538366iom.136.1621515289482; Thu, 20 May 2021 05:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621515289; cv=none; d=google.com; s=arc-20160816; b=LZrSUwp4due5XkJ51sKcp0G8ofAPdSxHRmyRluqz0KQrzGlA85ruB5T3FCmsrDBq71 n+sbRp+c+EVFTkx1VtgUoCH5vY3aqF5yRfjxie6GfPac47g4Vt1sDly4B/wLXwbLvVvr 4vBWrm4w+vWm4VSuG+TNbQX+xEXzLFetuy6MAFLkAfzUFIwby/Dhiuvz80jC+b/0qspX KvYqLA8VftA30gtmMUhvV8d+uEn6uBzAlMmCWJFRqY+DDqJh8KG1RoDjR8ufv8mjdRbj 1Tz4gShsy2MMQ11vJ+xFIDrxKP7x/cLHDk18A22vQVflqx1PdASvZ3BzwE+wqS56VwbI +ciQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VbT6WFYy0bkSk8HAYhg7anUqtgOM3QEr3KjCoKwSfHQ=; b=0Sgxu/ety8pLLSnRoFv/duX0DWUF4sjGQrJ/M+/4Q4Lx7jlanAo/kwB89ij2YhSRoY kSbRgTcwV7h4euTn1+ErhKaU/MxjPAZjVUq30G6V+A2E0NcWgLJCuXBzwpg/km9OkEi9 dCaWEolY8Qksuim6lbY2sTJFYMmuSGWS8BOchjF4mxY7hfjEUBCa1N2ddUBqeIs07lRA JD77yuMw1Rj4OGGZu/SUZvGsRANrXrpRKkSmw30iT4xYl6p5eiHTfFufLbc8Jp9PlA8E 7ygotlfZMVRBnBmUqM/Z6kcu7KjfcSjJ/C9AgdpYpqiqLlyHujQZ/TPgvnBcyNEI7MSm 5D/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=gOKAeXWp; spf=pass (google.com: domain of linux-embedded-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-embedded-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si2473178jac.95.2021.05.20.05.54.09; Thu, 20 May 2021 05:54:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-embedded-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=gOKAeXWp; spf=pass (google.com: domain of linux-embedded-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-embedded-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241924AbhETMyw (ORCPT + 86 others); Thu, 20 May 2021 08:54:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:60182 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243263AbhETMxO (ORCPT ); Thu, 20 May 2021 08:53:14 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1621515111; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VbT6WFYy0bkSk8HAYhg7anUqtgOM3QEr3KjCoKwSfHQ=; b=gOKAeXWpE3pQwkKpXwPHYoc4ERb31lQ3gBN7nTVt1yldwdnn1/3/XyAFth9rfgDimJkoQH agqxk+9Aox0SUUfXdjH85VkMEQazH8fYJyaFRs2tPVAJC3VdcHlyCnVzQyWN5LMIv2YHXJ O5RoTQ3j+3gflRxjf1BSBzx8QDoYDOo= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8A566ABE8; Thu, 20 May 2021 12:51:51 +0000 (UTC) Date: Thu, 20 May 2021 14:51:50 +0200 From: Petr Mladek To: Geert Uytterhoeven Cc: Joerg Roedel , Will Deacon , Steven Rostedt , Ingo Molnar , Sergey Senozhatsky , Linus Torvalds , Andrew Morton , Andy Shevchenko , Rasmus Villemoes , John Ogness , Marco Elver , Randy Dunlap , Vlastimil Babka , Linux IOMMU , Linux Kernel Mailing List , Linux Embedded , Geert Uytterhoeven Subject: Re: [PATCH 3/3] lib/vsprintf: Use pr_crit() instead of long fancy messages Message-ID: References: <20210331093104.383705-1-geert+renesas@glider.be> <20210331093104.383705-4-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-embedded@vger.kernel.org On Mon 2021-05-17 08:21:12, Geert Uytterhoeven wrote: > On Wed, Mar 31, 2021 at 11:59 AM Geert Uytterhoeven > wrote: > > While long fancy messages have a higher probability of being seen than > > small messages, they may scroll of the screen fast, if visible at all, > > and may still be missed. In addition, they increase boot time and > > kernel size. > > > > The correct mechanism to increase importance of a kernel message is not > > to draw fancy boxes with more text, but to shout louder, i.e. increase > > the message's reporting level. Making sure the administrator of the > > system is aware of such a message is a system policy, and is the > > responsability of a user-space log daemon. > > > > Fix this by increasing the reporting level from KERN_WARNING to > > KERN_CRIT, and removing irrelevant text and graphics. > > > > This reduces kernel size by ca. 0.5 KiB. > > > > Fixes: 5ead723a20e0447b ("lib/vsprintf: no_hash_pointers prints all addresses as unhashed") > > Signed-off-by: Geert Uytterhoeven > > No comments? > Unlike the cases handled by the other two patches in this series, > this one cannot be configured out. IMHO, the best solution would be to create a generic API for eye-catching messages. I am sure that WARN() is misused on many locations all over the kernel because people just wanted eye-catching message, for example, see https://lore.kernel.org/r/2149df3f542d25ce15d049e81d6188bb7198478c.camel@fi.rohmeurope.com It might be a win-win solution. Best Regards, Petr