2003-07-14 12:33:43

by Alan

[permalink] [raw]
Subject: PATCH: use the right function in reiserfs (resend #3)

#ra1
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/fs/reiserfs/prints.c linux.22-pre5-ac1/fs/reiserfs/prints.c
--- linux.22-pre5/fs/reiserfs/prints.c 2003-07-14 12:27:42.000000000 +0100
+++ linux.22-pre5-ac1/fs/reiserfs/prints.c 2003-07-06 14:06:59.000000000 +0100
@@ -159,7 +159,7 @@

*skip = 0;

- while ((k = strstr (k, "%")) != NULL)
+ while ((k = strchr (k, '%')) != NULL)
{
if (k[1] == 'k' || k[1] == 'K' || k[1] == 'h' || k[1] == 't' ||
k[1] == 'z' || k[1] == 'b' || k[1] == 'y' || k[1] == 'a' ) {


2003-07-14 13:34:49

by Marcelo Tosatti

[permalink] [raw]
Subject: Re: PATCH: use the right function in reiserfs (resend #3)


Do you reiserfs people have anything pending (so you could merge Alan
patch) or can I apply ?

On Mon, 14 Jul 2003, Alan Cox wrote:

> #ra1
> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/fs/reiserfs/prints.c linux.22-pre5-ac1/fs/reiserfs/prints.c
> --- linux.22-pre5/fs/reiserfs/prints.c 2003-07-14 12:27:42.000000000 +0100
> +++ linux.22-pre5-ac1/fs/reiserfs/prints.c 2003-07-06 14:06:59.000000000 +0100
> @@ -159,7 +159,7 @@
>
> *skip = 0;
>
> - while ((k = strstr (k, "%")) != NULL)
> + while ((k = strchr (k, '%')) != NULL)
> {
> if (k[1] == 'k' || k[1] == 'K' || k[1] == 'h' || k[1] == 't' ||
> k[1] == 'z' || k[1] == 'b' || k[1] == 'y' || k[1] == 'a' ) {
>

2003-07-14 13:47:48

by Oleg Drokin

[permalink] [raw]
Subject: Re: PATCH: use the right function in reiserfs (resend #3)

Hello!

On Mon, Jul 14, 2003 at 10:44:13AM -0300, Marcelo Tosatti wrote:

> Do you reiserfs people have anything pending (so you could merge Alan
> patch) or can I apply ?

You can apply this one.
We (namesys) do not have anything pending for 2.4.22

> On Mon, 14 Jul 2003, Alan Cox wrote:
> > #ra1
> > diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/fs/reiserfs/prints.c linux.22-pre5-ac1/fs/reiserfs/prints.c
> > --- linux.22-pre5/fs/reiserfs/prints.c 2003-07-14 12:27:42.000000000 +0100
> > +++ linux.22-pre5-ac1/fs/reiserfs/prints.c 2003-07-06 14:06:59.000000000 +0100
> > @@ -159,7 +159,7 @@
> >
> > *skip = 0;
> >
> > - while ((k = strstr (k, "%")) != NULL)
> > + while ((k = strchr (k, '%')) != NULL)
> > {
> > if (k[1] == 'k' || k[1] == 'K' || k[1] == 'h' || k[1] == 't' ||
> > k[1] == 'z' || k[1] == 'b' || k[1] == 'y' || k[1] == 'a' ) {
> >

Bye,
Oleg