mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Olivier Galibert <galibert@pobox.com>
Cc: Andrew Morton <akpm@osdl.org>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Jean Delvare <khali@linux-fr.org>,
	Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings)
Date: Mon, 11 Dec 2006 13:46:57 +1100	[thread overview]
Message-ID: <17788.50849.140884.507248@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20061209223418.GA76069@dspnet.fr.eu.org>

Olivier Galibert writes:

> Hmmm, then why don't you just drop the return value from the creation
> function and BUG() in there is something went wrong.  That would allow
> for better error messages too.

In this instance, BUG would mean that the console text would not ever
show up on the screen, and thus the user would never see the message
nor get any indication what wrong beyond "it failed to boot".

Paul.

  parent reply	other threads:[~2006-12-11  2:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20061209165606.2f026a6c.khali@linux-fr.org>
2006-12-09 19:59 ` Benjamin Herrenschmidt
2006-12-09 20:22   ` Muli Ben-Yehuda
2006-12-09 20:53     ` Benjamin Herrenschmidt
2006-12-09 20:38   ` Andrew Morton
2006-12-09 20:55     ` Benjamin Herrenschmidt
2006-12-09 21:44     ` Olivier Galibert
2006-12-09 21:58       ` Andrew Morton
2006-12-09 22:34         ` Olivier Galibert
2006-12-09 22:53           ` Andrew Morton
2006-12-10  0:55             ` Benjamin Herrenschmidt
2006-12-15 14:47               ` sysfs file creation result nightmare Jean Delvare
2006-12-15 20:16                 ` Benjamin Herrenschmidt
2006-12-15 20:31                   ` Andrew Morton
2006-12-20  8:01                     ` Greg KH
2006-12-20  9:27                       ` Benjamin Herrenschmidt
2006-12-11  2:46           ` Paul Mackerras [this message]
2006-12-14 21:42         ` sysfs file creation result nightmare (WAS radeonfb: Fix sysfs_create_bin_file warnings) Bill Davidsen

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=17788.50849.140884.507248@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=akpm@osdl.org \
    --cc=benh@kernel.crashing.org \
    --cc=galibert@pobox.com \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®