Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp872639imm; Tue, 5 Jun 2018 05:56:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2NUcB4XpUdzx0h7uGQqS9xLC4/Jtc84sqelhuj0A7r/eQ7Hd6nch3W+J73zr8aHPdh5iO X-Received: by 2002:a62:8202:: with SMTP id w2-v6mr5908337pfd.32.1528203417079; Tue, 05 Jun 2018 05:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528203417; cv=none; d=google.com; s=arc-20160816; b=zV9m0Q2G/lPnV/CoO+f6fEIPFlUkVqkBneIqmefyqRElLmcdInS1DB60o03zaPhiB9 BxfwhaE+Se8q8ljKm7XDWlXOiJkGxeBn6UDZHGSyEhE/XmyOrqh/pLaf+fyGYNKLfzwc AVu2SItb3nihulLntopLy2x8Tt2ykookh7AdBSzrIYNEtaljcDYOi0ercFmZeK1KKm4U Kgo8lnmUqmQ66S5RZgmB3x0R8yuYSJPFB0f4hfulwwtmgivEZLEpeZ9JaHSRksAW9Uiq s742JiH+DTjiqFzCJ86vsmrdUf4HmCLGWPGkFH5gHbuY8fmTORx1Sx160G2yt7K4EsES 6rDw== 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=ancri44ZgliKtfJoCOwneGD61Cl/7ofERYYWV+/G8F4=; b=qYtebZJ1QTYjcM3f70dFbcJTC2XHxWWN6FlAheiEjUWMGyjeGo7Tb1q39VaSjjE1Hs M3nNOAKk2qm7iUx2G1cERJ99kA5E8gsrT0+k+pgVrJnAY+CF7IE0YVynjIVWuLPUDBSU LxHQNhihW1DE3NgiDMvcc+b48Ub2Lq0JNIDtmXQuIy7iyyTtvwqm8Dfh0UUrrNKweHex ud8d+h0vJnRFdV0Sqf8eWtZQhoM+tnOCNHWbGmUxGpqwuS0vf4+EaMVBsVcs/5Ar5Vqk FW3nb3a9lzfjFNilLKZ6VoVCovu65Stky0nnxU2W4TpSReZjgfx8BLTuFb7YUVORo21j 2N0Q== 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 u19-v6si48839952pfn.241.2018.06.05.05.56.42; Tue, 05 Jun 2018 05:56:57 -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 S1751747AbeFEM4M (ORCPT + 99 others); Tue, 5 Jun 2018 08:56:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:41275 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667AbeFEM4L (ORCPT ); Tue, 5 Jun 2018 08:56:11 -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 068C1ACE7; Tue, 5 Jun 2018 12:56:10 +0000 (UTC) Date: Tue, 5 Jun 2018 14:56:09 +0200 From: Petr Mladek To: Steven Rostedt Cc: Maninder Singh , sergey.senozhatsky@gmail.com, 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: <20180605125609.wfvzjh7ph73pzgta@pathway.suse.cz> References: <20180531102133epcas5p2e8d47887c1708836c9b70964983093e2~zs4eTmEuv0380103801epcas5p2U@epcas5p2.samsung.com> <20180531121633.acuffu2b66q24c5c@pathway.suse.cz> <20180604173342.0b7a78e6@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180604173342.0b7a78e6@gandalf.local.home> 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 Mon 2018-06-04 17:33:42, Steven Rostedt wrote: > On Thu, 31 May 2018 14:16:33 +0200 > Petr Mladek wrote: > > > > 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... > > Then what's the problem for renumbering? I've renumbered internal flags > before. No one complained about it. Steven, did you renumber enum log_flags or flags in a different subsystem? Note that struct printk_log is a bit special because it is used by the "crash" tool to implement the dmesg/log command. While "crash" tool does not have special handling for most other internal structures. I have double checked "crash" sources and it ignores these flags at the moment but it might change in the future => I suggest to do not renumber them if there is not a real need. Best Regards, Petr