Re: [PATCH 2/3] sysfs: remove error messages for -EEXIST case

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cornelia Huck
Date: Thursday, May 15, 2008 - 12:52 am

On Wed, 14 May 2008 18:16:03 -0700,
Stephen Hemminger <shemminger@vyatta.com> wrote:


This looks reasonable...


...but this will cause many useful warnings to disappear.

What to do here?

- Rely on people checking all __must_check stuff and printing a warning
when desired. Not everyone seems to like that (see, for example,
http://marc.info/?l=linux-kernel&m=121012176111154&w=2).
- Put the burden unto the callers of sysfs_add_one() (or maybe even
further up). They should hopefully know whether -EEXIST is "might
happen" or "argh, we've messed up" (and print a warning in the latter
case so that it gets reported).
- Make this a debugging thing. Unfortunately then we won't neccessarily
get reports when things are busted.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/3] sysfs: remove error messages for -EEXIST case, Stephen Hemminger, (Wed May 14, 6:16 pm)
Re: [PATCH 2/3] sysfs: remove error messages for -EEXIST case, Cornelia Huck, (Thu May 15, 12:52 am)
Re: [PATCH] driver core: Suppress sysfs warnings for devic ..., Stephen Hemminger, (Tue May 20, 2:45 pm)
Re: [PATCH] driver core: Suppress sysfs warnings for devic ..., Stephen Hemminger, (Tue Jun 10, 8:30 am)