* [PATCH] commands/splash: fix '-y' option handling
@ 2015-01-25 13:22 Antony Pavlov
2015-01-26 8:16 ` Sascha Hauer
2015-01-26 8:51 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 2 replies; 4+ messages in thread
From: Antony Pavlov @ 2015-01-25 13:22 UTC (permalink / raw)
To: barebox
The '-y' and '-o' options are independent,
so just add missing 'break'.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
commands/splash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/commands/splash.c b/commands/splash.c
index 9bd84fb..077c0e4 100644
--- a/commands/splash.c
+++ b/commands/splash.c
@@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])
break;
case 'y':
s.y = simple_strtoul(optarg, NULL, 0);
+ break;
case 'o':
offscreen = 1;
}
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] commands/splash: fix '-y' option handling
2015-01-25 13:22 [PATCH] commands/splash: fix '-y' option handling Antony Pavlov
@ 2015-01-26 8:16 ` Sascha Hauer
2015-01-26 8:51 ` Jean-Christophe PLAGNIOL-VILLARD
1 sibling, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2015-01-26 8:16 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Sun, Jan 25, 2015 at 04:22:13PM +0300, Antony Pavlov wrote:
> The '-y' and '-o' options are independent,
> so just add missing 'break'.
>
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Applied, thanks.
> ---
> commands/splash.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/commands/splash.c b/commands/splash.c
> index 9bd84fb..077c0e4 100644
> --- a/commands/splash.c
> +++ b/commands/splash.c
> @@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])
> break;
> case 'y':
> s.y = simple_strtoul(optarg, NULL, 0);
> + break;
> case 'o':
> offscreen = 1;
It is missing here aswell. It's the last case, so this is not currently
a bug, but it could easily turn into a bug once the next option is
added.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] commands/splash: fix '-y' option handling
2015-01-25 13:22 [PATCH] commands/splash: fix '-y' option handling Antony Pavlov
2015-01-26 8:16 ` Sascha Hauer
@ 2015-01-26 8:51 ` Jean-Christophe PLAGNIOL-VILLARD
2015-01-26 9:22 ` Sascha Hauer
1 sibling, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2015-01-26 8:51 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
> On Jan 25, 2015, at 9:22 PM, Antony Pavlov <antonynpavlov@gmail.com> wrote:
>
> The '-y' and '-o' options are independent,
> so just add missing 'break'.
>
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
> commands/splash.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/commands/splash.c b/commands/splash.c
> index 9bd84fb..077c0e4 100644
> --- a/commands/splash.c
> +++ b/commands/splash.c
> @@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])
> break;
> case 'y':
> s.y = simple_strtoul(optarg, NULL, 0);
> + break;
> case 'o':
> offscreen = 1;
> }
> --
> 2.1.4
I already send a patch weeks ago to fix
Best Regards,
J.
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] commands/splash: fix '-y' option handling
2015-01-26 8:51 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2015-01-26 9:22 ` Sascha Hauer
0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2015-01-26 9:22 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
On Mon, Jan 26, 2015 at 04:51:14PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote:
>
> > On Jan 25, 2015, at 9:22 PM, Antony Pavlov <antonynpavlov@gmail.com> wrote:
> >
> > The '-y' and '-o' options are independent,
> > so just add missing 'break'.
> >
> > Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> > ---
> > commands/splash.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/commands/splash.c b/commands/splash.c
> > index 9bd84fb..077c0e4 100644
> > --- a/commands/splash.c
> > +++ b/commands/splash.c
> > @@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])
> > break;
> > case 'y':
> > s.y = simple_strtoul(optarg, NULL, 0);
> > + break;
> > case 'o':
> > offscreen = 1;
> > }
> > --
> > 2.1.4
>
> I already send a patch weeks ago to fix
I can only find this patch from you about splash in the last few months:
[PATCH 2/2] command/splash: fix return value
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-26 9:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-25 13:22 [PATCH] commands/splash: fix '-y' option handling Antony Pavlov
2015-01-26 8:16 ` Sascha Hauer
2015-01-26 8:51 ` Jean-Christophe PLAGNIOL-VILLARD
2015-01-26 9:22 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox