Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3555300imm; Sun, 17 Jun 2018 23:24:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKrM0oj/emp6NCI4NztfpYywqaCC92kDFsrLD0JSxBDCKAyBUrPUGUsaMUOsOk6iqO+y1gq X-Received: by 2002:a63:2682:: with SMTP id m124-v6mr9882162pgm.56.1529303050923; Sun, 17 Jun 2018 23:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529303050; cv=none; d=google.com; s=arc-20160816; b=QZJubWbVSgYmiA9OWS/RqF8F9+3RxzQ42FVHbzNH1nhllSLKi5gb7GM4eQRZyFPrJ2 MGoklZfRlHwgeO6ZUsbsaKyZmH6T0Q/K9iatjo7m7Xz2f2He2ccl9W9bvhtat/opamuh KbwEMAKpYwiyOtUVRjeiC5DaabaW9rIDv5yrME0cMWQe2BOYstAQm2cXYX1YsMoob6ZR nBbb4BGeO9rMFix3+vfn7WfeTapvMj0JXRXMjJvji2v+ke6Hjnr5cPQU5cVOzTFZAWZ8 bUFJEFSnJ5sl3HzYh09IRHR3TaiMjYBSBlnNB5UIeT4Jl2vdUe6mqfAZoIOh2ZNQK7r7 1dTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=9ida75I7DFfN8PgNFrzgd++5DZBUYN42mOWGU0D5Q0c=; b=DUNwDH8RsSVdM21LRhIk+egDKQqAObT9lEjL93fyBswZ5dRmbQZzeG//uKx1lU8LX0 vrUOBFCyec3cTA3PM7tFLrnq+wEjkUI7j2ei1dQsdiO+ASBzcasfTFdIxeg3MWH9SXPu XKLSx6fUX5aMCWtbXkQlqadIgsz8Utrl3idvy9TC33C/RWCUUiCW4IzfEUtsi+HzZb3W Z/7xxKVZxT9vvtWRK5DT6brK4PGjbZwSH7Y4MJdubagne3I5HFF7/xtRley9AmIEYSRi /hXUsyI95SrwOxWfYHrUFG67kxXkxY/cnKG58ec0WPFsfzRS+Za5nM8Ck2xBn41/aclE BlFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V5GpEsR9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5-v6si11644211pgn.660.2018.06.17.23.23.56; Sun, 17 Jun 2018 23:24:10 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V5GpEsR9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754895AbeFRGXM (ORCPT + 99 others); Mon, 18 Jun 2018 02:23:12 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:46796 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbeFRGXL (ORCPT ); Mon, 18 Jun 2018 02:23:11 -0400 Received: by mail-pl0-f68.google.com with SMTP id 30-v6so8435491pld.13 for ; Sun, 17 Jun 2018 23:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9ida75I7DFfN8PgNFrzgd++5DZBUYN42mOWGU0D5Q0c=; b=V5GpEsR9O9m3Eji5ovOz/PhiWc9MB6CflZ+EhywZDhWJYxfFqpeorytHPf+wXTgNgl sjMqBqL66a5JdVvf7rIY7dsV2YTiY6T3vcGN5KiJsuqZjne9r5vrw/DBPgCb7Hsq6heQ zoSx0HlwjHp+EKyayZNxWjigqsjj9LuHUN4/c4/5plS1o1evIoU/1hsxCsIdJAqmcjUq Ip6cUFn0DvaFXmtM7T9uiI9vkNC8lG0YVQfNW5qdxf1mhT1XcCI5XRvMjIi9t9y9lUfx G5rSh4+pxx9ufxmPivIHfcSnQ7gI0YkPWLeBj5i0w/zatqXvaupQ+2ln/VmL7Ozjnfyb ReDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9ida75I7DFfN8PgNFrzgd++5DZBUYN42mOWGU0D5Q0c=; b=jrbox2QIDdM+bnRtub9VHewmebomurBqlkDffuE+TMzHIJuCyLe/nl8oVS2Ft+TerU uwFsGYJb6BnJpE5Qjj0Nz8WfdrE0NDlfdZTesPiHeszAiluuE2HbfK4Q3qAZCHGYMshQ fSPHeN6vKcdEGxVI2LBGD2CsLv4iq8acNhbC9Z6taRRzqswjY94KAQH0So8MWpCh7cBU LuNkVxZktUxuNzkMidev/hQce0THCJj2cTV7IrgdWSkchDbrzTPITXqPC/XmjDQnZIwM CIzFXrDPPVmbNnSSOtXoIOFARLKpubKMirtSYo3adKysc98v/z/G/3kHahkAK/qNvTx5 gBiA== X-Gm-Message-State: APt69E0ZY6VzK7WnnFPHRBnp8bwmsL9oubck19mI2HwrjENIvuLmXeFz lj50Xu7gs9wJCvVsP6Or2qk= X-Received: by 2002:a17:902:1081:: with SMTP id c1-v6mr12605686pla.153.1529302991202; Sun, 17 Jun 2018 23:23:11 -0700 (PDT) Received: from localhost ([110.70.54.122]) by smtp.gmail.com with ESMTPSA id n68-v6sm25333204pfk.145.2018.06.17.23.23.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Jun 2018 23:23:09 -0700 (PDT) Date: Mon, 18 Jun 2018 15:23:06 +0900 From: Sergey Senozhatsky To: Maninder Singh , pmladek@suse.com Cc: sergey.senozhatsky@gmail.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, a.sahrawat@samsung.com, pankaj.m@samsung.com, v.narang@samsung.com, Sergey Senozhatsky Subject: Re: [PATCH v2] printk: make sure to print log on console. Message-ID: <20180618062306.GA29683@jagdpanzerIV> References: <20180601090029epcas5p3cc93d4bfbebb3199f0a2684058da7e26~z-a_jkmrI2993329933epcas5p3q@epcas5p3.samsung.com> <20180618061550.GA27996@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180618061550.GA27996@jagdpanzerIV> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (06/18/18 15:15), Sergey Senozhatsky wrote: > > On (06/01/18 14:26), Maninder Singh wrote: > > > > Signed-off-by: Vaneet Narang > > Signed-off-by: Maninder Singh > > Reviewed-by: Sergey Senozhatsky OK, we probably need v3 after all. I think this - if (suppress_message_printing(msg->level)) { + if (msg->flags & LOG_NOCONS) { must be changed to - if (suppress_message_printing(msg->level)) { + if (!ignore_loglevel && (msg->flags & LOG_NOCONS)) { `ignore_loglevel' is a module param and can change any time via /sys/module/printk/parameters/ignore_loglevel we need to respect its value. -ss