All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Smertnig <daniel.smertnig@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH 2.6.12] [RESEND] /proc/tty/driver/* filtering for non
Date: Thu, 30 Jun 2005 13:01:57 +0000	[thread overview]
Message-ID: <18dd01ff05063006017f102eb@mail.gmail.com> (raw)
In-Reply-To: <20050622194756.GA6699@dansme-mobile.smertnig>

On 6/29/05, Domen Puncer <domen@coderock.org> wrote:
> On 22/06/05 21:47 +0200, Daniel Smertnig wrote:
> > diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c
> > --- a/drivers/char/amiserial.c
> > +++ b/drivers/char/amiserial.c
> > @@ -1876,6 +1876,17 @@ static inline int line_info(char *buf, s
> >               info->quot = 0;
> >               info->tty = NULL;
> >       }
> > +
> > +     if (info->quot) {
> > +             ret += sprintf(buf+ret, " baud:%d",
> > +                            state->baud_base / info->quot);
> > +     }
> > +
> > +     if (!capable(CAP_SYS_RAWIO)) {
> > +             strcat(buf, "\n");
> > +             return ret + 1;
> 
> So... we overwrite first two bytes, and then return the whole string?
> Or am I missing something?

I don't see any problem here? A newline is appended to the string and
the total length of the string (previous length "ret" + 1 for the
newline) is returned.

> > +     }
> > +
> 
>    ^^ you introduce whitespace.

Sorry, i will resend with that fixed

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2005-06-30 13:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22 19:47 [KJ] [PATCH 2.6.12] [RESEND] /proc/tty/driver/* filtering for non Daniel Smertnig
2005-06-29 10:42 ` Domen Puncer
2005-06-29 11:01 ` [KJ] [PATCH 2.6.12] [RESEND] /proc/tty/driver/* filtering for walter harms
2005-06-30 13:01 ` Daniel Smertnig [this message]
2005-06-30 13:05 ` [KJ] [PATCH 2.6.12] [RESEND] /proc/tty/driver/* filtering for non Daniel Smertnig
2005-06-30 13:48 ` Domen Puncer
2005-06-30 13:56 ` Daniel Smertnig
2005-06-30 15:50 ` Domen Puncer
2005-06-30 17:23 ` Daniel Smertnig

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=18dd01ff05063006017f102eb@mail.gmail.com \
    --to=daniel.smertnig@gmail.com \
    --cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.