Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: Giuliano Pochini <pochini@shiny.it>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@lists.sourceforge.net
Subject: Re: pm, hello ??
Date: Thu, 09 Feb 2006 17:56:14 -0500	[thread overview]
Message-ID: <1139525775.30058.123.camel@mindpipe> (raw)
In-Reply-To: <20060209231226.4c33f598.pochini@shiny.it>

On Thu, 2006-02-09 at 23:12 +0100, Giuliano Pochini wrote:
> Finally I found some time to debug it.
> 
> It happens that "echo 3 > file" actually writes "3\n" into the file.
> lib/vsprintf.c:simple_strtoul() returns the first non-digit character
> in the
> second argument. Then driver/base/power/sysfs.c:state_store() does:
>         if (*rest)
>                 return -EINVAL;
> *rest is always '\n', so it exits here. 

There was a discussion not long ago on LKML about whether sysfs should
strip the trailing newline.  The consensus was that this is bloat, and
echo -n should be used.  I'm not sure I agree...

Lee



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

      reply	other threads:[~2006-02-09 22:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-30 21:55 pm, hello ?? Giuliano Pochini
2006-01-31 14:06 ` Takashi Iwai
2006-02-09 22:12   ` Giuliano Pochini
2006-02-09 22:56     ` Lee Revell [this message]

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=1139525775.30058.123.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=pochini@shiny.it \
    --cc=tiwai@suse.de \
    /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