Skip to contentSkip to conversation

mkimage: Fix argument parsing with signature comment

PATCH New Karl Beldan 2 participants 5 messages Aug 2, 2016 – Aug 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkimage: Fix argument parsing with signature comment

From: Karl Beldan <[email protected]>

---
 tools/mkimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mkimage.c +1 -1
index d993958..3c594a0 100644
@@ -140,7 +140,7 @@ static void process_args(int argc, char **argv)
 	int opt;
 
 	while ((opt = getopt(argc, argv,
-			     "a:A:b:cC:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) {
+			     "a:A:b:c:C:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) {
 		switch (opt) {
 		case 'a':
 			params.addr = strtoull(optarg, &ptr, 16);
Signature · 1 line
2.9.0.rc1
#1 lore raw

PATCH 1/1 mkimage: Fix argument parsing with signature comment

Quoted 12 lines · Karl Beldan

From: Karl Beldan <[email protected]>

---
 tools/mkimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mkimage.c +0 -0
index d993958..3c594a0 100644

tools/mkimage.c static void process_args(int argc, char **argv) · line 143

Quoted 5 lines
tools/mkimage.c +1 -1
@@ -140,7 +140,7 @@ static void process_args(int argc, char **argv)
 	int opt;
 
 	while ((opt = getopt(argc, argv,
-			     "a:A:b:cC:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) {
+			     "a:A:b:c:C:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) {

Can you please add in a message and perhaps a Fixes: ... ? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160802/3cf73845/attachment.sig>
#2 lore raw

PATCH v2 1/1 mkimage: Fix argument parsing with signature comment

Inform getopt that '-c' requires a parameter.

Fixes a02221f29deb ("mkimage: Convert to use getopt()")
---
 tools/mkimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mkimage.c +1 -1
index d993958..3c594a0 100644
@@ -140,7 +140,7 @@ static void process_args(int argc, char **argv)
 	int opt;
 
 	while ((opt = getopt(argc, argv,
-			     "a:A:b:cC:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) {
+			     "a:A:b:c:C:d:D:e:Ef:Fk:K:ln:p:O:rR:qsT:vVx")) != -1) {
 		switch (opt) {
 		case 'a':
 			params.addr = strtoull(optarg, &ptr, 16);
Signature · 1 line
2.9.0.rc1
#3 lore raw

PATCH v2 1/1 mkimage: Fix argument parsing with signature comment

Quoted 4 lines · Karl Beldan

Inform getopt that '-c' requires a parameter.

Fixes a02221f29deb ("mkimage: Convert to use getopt()")
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160802/68849ad9/attachment.sig>
#4 lore raw

PATCH v2 1/1 mkimage: Fix argument parsing with signature comment

In reply to Karl Beldan
Quoted 5 lines · Karl Beldan

Inform getopt that '-c' requires a parameter.

Fixes a02221f29deb ("mkimage: Convert to use getopt()")

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160805/081d6d0e/attachment.sig>