Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp269249pxf; Wed, 31 Mar 2021 03:01:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzepnSk/QoJewW1dXhgelP6pMleJic5Vk3IQPKMF/eDKujO0l1ZBjeiZxiWi0d/oAvfPwD X-Received: by 2002:aa7:cdcf:: with SMTP id h15mr2686644edw.28.1617184877719; Wed, 31 Mar 2021 03:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617184877; cv=none; d=google.com; s=arc-20160816; b=HpsRNueycufbqtW/tdtfdeoQblk2PTTlGye3ZUVDucdMcwgcNZJ6QCkmEQzc3JSrPZ 41hcg8rUWhu+5JQtpDOAMuBf7Sg06a7aQKl8oODmKjPSgh5X9PMcs+/hqf/E3RN66mdd Oxr24ATF7e0oxDgQLlmPVgUYAufdtw8PBvFra9wbiJkv/W57eKBEUKCIxET76TFWks4f 6nQ1sq44lHZizcF+oCVs//rZxEPbFir1YlKtR9nV+O6BbUYIO7wE9RXbi7hwkdRKQ14V rPzJGSgAZWrwl/6jyPzSxqDnsS47N+/x92P97wURMLU5Qgrw1C8ml6tB/j3XfENGEPHi zHmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=b2xD1K39tK41TMtgLp1DAMmaIK2DNyMNpyyQPyKzq/Y=; b=oeSd/W22UnqES0qwFOuPFEOkDJ0heVAGCT3xubpuxSDeOy50187dXZZFVcDfJ5y1CQ V+ISbyGg9bYdt73qZ9ruj34mrTMAe2sGhnTxal2ok1pyvyW3dqJGMsfzjH6Z/+kNjfUZ e2TtV8B2CGzS3S+/WtoQmx6m9lGj/PnNASeJ5BW/n9nZpMHXd8PCF3K0perWzrne96dk TLv5TUcy8B2ds8+FDzuShc+NFg9A6/UEvA1Yx/5dS4r6mgNTx5ZgYgDtp0IVwzn24Qn4 hgFDgLkQrYzCaJumXfhDYO25kYP73lQVtekGxcWbxzeKz13cLxQk9v58m1IfYPr/EP1O fqrg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bw19si1303646ejb.85.2021.03.31.03.00.56; Wed, 31 Mar 2021 03:01:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235019AbhCaKAY (ORCPT + 89 others); Wed, 31 Mar 2021 06:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234983AbhCaJ7v (ORCPT ); Wed, 31 Mar 2021 05:59:51 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF89EC06174A for ; Wed, 31 Mar 2021 02:59:50 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:ada2:b4da:6568:5ad5]) by andre.telenet-ops.be with bizsmtp id mxzd2400B5W9KJv01xzdoa; Wed, 31 Mar 2021 11:59:49 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lRXdQ-00BseR-HG; Wed, 31 Mar 2021 11:59:36 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lRXBt-001bpc-Ar; Wed, 31 Mar 2021 11:31:09 +0200 From: Geert Uytterhoeven To: Joerg Roedel , Will Deacon , Steven Rostedt , Ingo Molnar , Petr Mladek , Sergey Senozhatsky Cc: Linus Torvalds , Andrew Morton , Andy Shevchenko , Rasmus Villemoes , John Ogness , Gary R Hook , Marco Elver , Randy Dunlap , Vlastimil Babka , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-embedded@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/3] Use pr_crit() instead of long fancy messages Date: Wed, 31 Mar 2021 11:31:01 +0200 Message-Id: <20210331093104.383705-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-embedded@vger.kernel.org Hi all, 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. This series increases the reporting level of such messages from KERN_WARNING to KERN_CRIT, and removes irrelevant text and graphics. It was made against linux-next, but applies to v5.12-rc5 with an offset for the last patch. Each of these patches reduces kernel size by ca. 0.5 KiB. Thanks for your comments! Geert Uytterhoeven (3): iommu: Use pr_crit() instead of long fancy messages tracing: Use pr_crit() instead of long fancy messages lib/vsprintf: Use pr_crit() instead of long fancy messages drivers/iommu/iommu-debugfs.c | 19 ++++--------------- kernel/trace/trace.c | 17 +++-------------- lib/vsprintf.c | 17 +++-------------- 3 files changed, 10 insertions(+), 43 deletions(-) -- 2.25.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds