public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Minchan Kim <minchan@kernel.org>
To: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Salah Triki <salah.triki@acm.org>,
	ngupta@vflare.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] zram: Replace pr_* with dev_*
Date: Fri, 7 Aug 2015 23:58:57 +0900	[thread overview]
Message-ID: <20150807145856.GB32614@blaptop> (raw)
In-Reply-To: <20150807063756.GH1891@swordfish>

On Fri, Aug 07, 2015 at 03:37:56PM +0900, Sergey Senozhatsky wrote:
> Hello Minchan,
> 
> On (08/07/15 15:05), Minchan Kim wrote:
> [..]
> > > I'd prefer to leave the messages the way they are. Changing anything
> > > visible to user space (api, eror codes, error messages, etc.) is a
> > > very risky business. You change the format of error messages and it
> > > smells like a big NO-NO.
> > > 
> > > 'zram: Cannot initialise lzo compressing backend'
> > > --> 'block zram0: Cannot initialise lzo compressing backend'
> > > 
> > > 
> > > And there are even more dramatic changes:
> > > "Cannot change max compression streams\n"
> > > --> "Cannot change max compression streams to %d\n"
> > > 
> > > "Can't change algorithm for initialized device\n"
> > > --> "Can't change algorithm to %s for initialized device\n"
> > > 
> > > 
> > > People already can have scripts doing `grep "zram:"` on dmesg or
> > > whatever. We cannot change this anymore.
> > > 
> > > This potentially breaks things in user space. So, I NACK the change
> > > set. Thanks.
> > > 
> > > Minchan, any opinion?
> > 
> > Note: I didn't read this patchset in detail so I might be wrong.
> > 
> > When I read description, I couldn't see what's the benefit.
> > Please write it out.
> 
> we now have errors like
>  'zram: Cannot initialise lzo compressing backend'
> 
> and they will transform into
> 
>  'block zram0: Cannot initialise lzo compressing backend'
> 
> note the prefix 'zram:' became 'block zram0:'

It would be better because it's more clear if we can make several
blocks.

> 
> 
> and there are two patches (well, at least I quickly spotted only
> those) that change messages' text
> 
> From:  "Cannot change max compression streams\n"
> To: "Cannot change max compression streams to %d\n"

In this context, we don't need to say about max_comp_streams value.
It's just fail regardless of the number of max stream you passed.
Instead, it would be better to have prefix like above(ie, block zram0)
for clarification/consistency.

> 
> where %d is a supplied max_comp_stream value
> 
> From: "Can't change algorithm for initialized device\n"
> To: "Can't change algorithm to %s for initialized device\n"

It's okay but hope to have prefix "block zram0"

> 
> where %s is a supplied compression algorithm name.
> 
> 
> as far as I can tell.

Thanks for the explain. Sergey!

I feel we should investigate all of error/log info places to make
them clear/consistent if we decide to go with this.

Thanks.
-- 
Kind regards,
Minchan Kim

  parent reply	other threads:[~2015-08-07 14:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-06 22:57 [PATCH 0/3] zram: Replace pr_* with dev_* Salah Triki
2015-08-06 23:03 ` [PATCH 1/3] zram: Replace pr_info with dev_info in max_comp_streams_store Salah Triki
2015-08-06 23:03   ` [PATCH 2/3] zram: Replace pr_info with dev_info in comp_algorithm_store Salah Triki
2015-08-06 23:03     ` [PATCH 3/3] zram: Replace pr_* with dev_* Salah Triki
2015-08-07  0:05 ` [PATCH 0/3] " Sergey Senozhatsky
2015-08-07  1:17   ` Joe Perches
2015-08-07  1:42     ` Sergey Senozhatsky
2015-08-07  1:48       ` Joe Perches
2015-08-07  2:03         ` Sergey Senozhatsky
2015-08-07  2:16           ` Sergey Senozhatsky
2015-08-07  6:05   ` Minchan Kim
2015-08-07  6:37     ` Sergey Senozhatsky
2015-08-07  6:56       ` Sergey Senozhatsky
2015-08-07  7:12         ` Joe Perches
2015-08-07  7:25           ` Sergey Senozhatsky
2015-08-07 14:58       ` Minchan Kim [this message]
2015-08-10  1:25         ` Sergey Senozhatsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150807145856.GB32614@blaptop \
    --to=minchan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ngupta@vflare.org \
    --cc=salah.triki@acm.org \
    --cc=sergey.senozhatsky.work@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox