Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp540221imm; Thu, 31 May 2018 05:17:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKISZArqI5wrmmoHiNDIOBny4q/8pQ2Ih+fyhEF9VEbg5F7TwcB+zodiU47DMx2F/pIjTGU+ X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr6828046pls.56.1527769049224; Thu, 31 May 2018 05:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527769049; cv=none; d=google.com; s=arc-20160816; b=dW/3nUXsQ73Vh75itAV6rRSJ1nMegtdVlJS7uKWI8norD6oSLWFHCjwg/dw6Jz8eMp qN9oL2OuPgck4TBgjKxi2/k1f8YuB44thNcGNf00JJsDhyvIIHnBBDWvBTVf5f63OyXC NK9WEulGvqsMZot2lELbYj7x232ZSTxo5ydHqt8Z7+5FPDcpphFEe53/4tU5yNDSDCSO mVnm9NvRlI0mHrFIhoIpZC0lBwQKvpiw5xs3gHeMpNEd/UkuD1KsxsCSPqVCKcca352d OxR7FeoqI4KCKRJyylB7YQ/1slSm0PZLl1ad38EHGBVcy0EKOy7dykXrMNrVbB0YEUtP BsrA== 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:arc-authentication-results; bh=vS/kRgm++ekHXwTczHp6qdanujEsbX+29PUFSLUh5W0=; b=EoiqgcWTER4SOQpuvxMgia7fAHZ81o+4l9gBDpgdSz2ayGELskoD0cuwMWpKrMiqlS e9lVuOY2O16CwE1WRDy8yrbhj+PRE+uyV8mH1pJBkI+nmumVluAR7gI/gTdvYS4L0CYi JYkXv1M9l++kP8ft/5V1VPxP4O8Hetsj4Ig2BorWZtegQKWHFklK0RHDSkV7fBJ1egq9 u0ST43j6VLIjWVG2E2IgsjGPAyX0Th/pao5OH3UawlMbGtW0s0cnuZW8afzD8jCK+sHy dEGdBDaOnplBPjYKe8esyHDZg6wyfIOnm3FIsE78CtUKpTUySDOJchbXCFDUawABcK5G n5og== 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 b68-v6si35993569pfg.94.2018.05.31.05.17.14; Thu, 31 May 2018 05:17:29 -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; 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 S1754869AbeEaMQj (ORCPT + 99 others); Thu, 31 May 2018 08:16:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:46638 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754714AbeEaMQf (ORCPT ); Thu, 31 May 2018 08:16:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5F942AEB6; Thu, 31 May 2018 12:16:34 +0000 (UTC) Date: Thu, 31 May 2018 14:16:33 +0200 From: Petr Mladek To: Maninder Singh 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 Subject: Re: [PATCH 1/2] printk: remove unused flag LOG_NOCONS Message-ID: <20180531121633.acuffu2b66q24c5c@pathway.suse.cz> References: <20180531102133epcas5p2e8d47887c1708836c9b70964983093e2~zs4eTmEuv0380103801epcas5p2U@epcas5p2.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531102133epcas5p2e8d47887c1708836c9b70964983093e2~zs4eTmEuv0380103801epcas5p2U@epcas5p2.samsung.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2018-05-31 15:47:51, Maninder Singh wrote: > This patch removes unused flag LOG_NOCONS for printk. > usage of this flag is removed long back with below commit. Make sense. > "5c2992ee7fd8a29d04125dc0aa3522784c5fa5eb" > printk: remove console flushing special cases for > partial buffered lines > > Signed-off-by: Maninder Singh > Signed-off-by: Vaneet Narang > --- > kernel/printk/printk.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index 2f4af21..ab15903 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -349,10 +349,9 @@ enum con_msg_format_flags { > */ > > enum log_flags { > - LOG_NOCONS = 1, /* already flushed, do not print to console */ > - LOG_NEWLINE = 2, /* text ended with a newline */ > - LOG_PREFIX = 4, /* text started with a prefix */ > - LOG_CONT = 8, /* text is a fragment of a continuation line */ > + LOG_NEWLINE = 1, /* text ended with a newline */ > + LOG_PREFIX = 2, /* text started with a prefix */ > + LOG_CONT = 4, /* text is a fragment of a continuation line */ > }; Please, do not renumber the bits if there is no real need for it. The format of the log buffer is read also by external tool like "crash". It seems that "crash" ignores these flags but... Best Regards, Petr