From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Bastian Blank <bastian@waldi.eu.org>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org,
heiko.carstens@de.ibm.com, schwidefsky@de.ibm.com
Subject: Re: + s390-add-modalias-to-uevent-for-ccw-devices.patch added to -mm tree
Date: Mon, 6 Mar 2006 16:39:50 +0100 [thread overview]
Message-ID: <20060306163950.5eb027e6@gondolin.boeblingen.de.ibm.com> (raw)
In-Reply-To: <20060306135017.GA18874@wavehammer.waldi.eu.org>
On Mon, 6 Mar 2006 14:50:17 +0100
Bastian Blank <bastian@waldi.eu.org> wrote:
> And it does not work as expected. The uevent includes "MODALIAS=" but
> the rest got lost in the buffer as it used a wrong offset. The attached
> patch makes that really working.
> @@ -120,8 +120,8 @@ ccw_uevent (struct device *dev, char **e
> buffer += length;
>
> envp[i++] = buffer;
> - length += scnprintf(buffer, buffer_size - length, "MODALIAS=");
> - length += modalias_print(cdev, buffer + length, buffer_size - length);
> + length += tmp_length = scnprintf(buffer, buffer_size - length, "MODALIAS=");
> + length += modalias_print(cdev, buffer + tmp_length, buffer_size - length);
> if ((buffer_size - length <= 0) || (i >= num_envp))
> return -ENOMEM;
You're right. I don't like the tmp_length too much, but can't think of
anything better.
Cornelia
next prev parent reply other threads:[~2006-03-06 15:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200603060714.k267E6gN021778@shell0.pdx.osdl.net>
2006-03-06 10:04 ` Cornelia Huck
2006-03-06 10:14 ` Andrew Morton
2006-03-06 10:18 ` Bastian Blank
2006-03-06 13:50 ` Bastian Blank
2006-03-06 15:39 ` Cornelia Huck [this message]
2006-03-06 16:02 ` Bastian Blank
2006-03-06 16:17 ` Cornelia Huck
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=20060306163950.5eb027e6@gondolin.boeblingen.de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=akpm@osdl.org \
--cc=bastian@waldi.eu.org \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=schwidefsky@de.ibm.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
all inboxes | Powered by JetHome®