* [U-Boot] [PATCH] cmd: gpio: Fix 'set' regression
@ 2016-02-15 16:02 Tom Rini
2016-02-15 16:16 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Tom Rini @ 2016-02-15 16:02 UTC (permalink / raw)
To: u-boot
In 0ffe6ab we changed the test for status from the whole word to just
starting with 's' which of course broke 'set', so change the test to
'st' so that it won't catch set (which is still just a test for 's').
Cc: Simon Glass <sjg@chromium.org>
Reported-by: Soeren Moch <smoch@web.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
cmd/gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/gpio.c b/cmd/gpio.c
index 2b78b16..693998e 100644
--- a/cmd/gpio.c
+++ b/cmd/gpio.c
@@ -141,7 +141,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
if (argc > 0)
str_gpio = *argv;
- if (!strncmp(str_cmd, "status", 1)) {
+ if (!strncmp(str_cmd, "status", 2)) {
/* Support deprecated gpio_status() */
#ifdef gpio_status
gpio_status();
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] cmd: gpio: Fix 'set' regression
2016-02-15 16:02 [U-Boot] [PATCH] cmd: gpio: Fix 'set' regression Tom Rini
@ 2016-02-15 16:16 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2016-02-15 16:16 UTC (permalink / raw)
To: u-boot
On Mon, Feb 15, 2016 at 11:02:55AM -0500, Tom Rini wrote:
> In 0ffe6ab we changed the test for status from the whole word to just
> starting with 's' which of course broke 'set', so change the test to
> 'st' so that it won't catch set (which is still just a test for 's').
>
> Cc: Simon Glass <sjg@chromium.org>
> Reported-by: Soeren Moch <smoch@web.de>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Aaand I see I'm late to the party, oh well.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160215/1fdf36ae/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-15 16:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 16:02 [U-Boot] [PATCH] cmd: gpio: Fix 'set' regression Tom Rini
2016-02-15 16:16 ` Tom Rini
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.