qtest: fix hex2nib for capital characters
PATCH 1/1 qtest: fix hex2nib for capital characters
From: Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>
--- qtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qtest.c +1 -1
@@ -148,7 +148,7 @@ static int hex2nib(char ch) }else if (ch >='a' && ch <='f' ) {return 10 + (ch -'a' ); }else if (ch >='A' && ch <='F' ) { -return 10 + (ch -'a' ); +return 10 + (ch -'A' ); }else {return -1 ; }
Signature · 1 line
1.9.1
Quoted 13 lines · [email protected] writes:
From: Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>--- qtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qtest.c +0
-0
qtest.c static int hex2nib(char ch) · line 154
Quoted 8 lines
qtest.c +1
-1@@ -148,7 +148,7 @@ static int hex2nib(char ch) }else if (ch >='a' && ch <='f' ) {return 10 + (ch -'a' ); }else if (ch >='A' && ch <='F' ) { -return 10 + (ch -'a' ); +return 10 + (ch -'A' ); }else {return -1 ; }
Awesome testing on the original author's part %-}
Reviewed-by Markus Armbruster <[email protected]>
Quoted 7 lines · On Tue, May 27, 2014 at 12:16:00PM +0400, [email protected] wrote:
From: Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>--- qtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Stefan Hajnoczi <[email protected]>
Michael S. Tsirkin
AppliedQuoted 3 lines · On Tue, May 27, 2014 at 12:16:00PM +0400, [email protected] wrote:
From: Sergey Fedorov <[email protected]>
Signed-off-by Sergey Fedorov <[email protected]>
Applied, thanks!
Quoted 19 lines
--- qtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qtest.c +1
-1@@ -148,7 +148,7 @@ static int hex2nib(char ch) }else if (ch >='a' && ch <='f' ) {return 10 + (ch -'a' ); }else if (ch >='A' && ch <='F' ) { -return 10 + (ch -'a' ); +return 10 + (ch -'A' ); }else {return -1 ; }Signature · 1 line
1.9.1