* [PATCH v1] main: Fix a logical error within parse_config_int()
@ 2023-07-31 7:46 Zijun Hu
2023-07-31 8:48 ` Paul Menzel
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Zijun Hu @ 2023-07-31 7:46 UTC (permalink / raw)
To: luiz.dentz; +Cc: linux-bluetooth, quic_zijuhu
Fix a logical error within parse_config_int().
---
src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 150a5af4cca4..13501440b052 100644
--- a/src/main.c
+++ b/src/main.c
@@ -458,7 +458,7 @@ static bool parse_config_int(GKeyFile *config, const char *group,
return false;
}
- if (tmp < max) {
+ if (tmp > max) {
warn("%s.%s = %d is out of range (> %d)", group, key, tmp, max);
return false;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v1] main: Fix a logical error within parse_config_int()
2023-07-31 7:46 [PATCH v1] main: Fix a logical error within parse_config_int() Zijun Hu
@ 2023-07-31 8:48 ` Paul Menzel
2023-07-31 8:58 ` quic_zijuhu
2023-07-31 9:16 ` [v1] " bluez.test.bot
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Paul Menzel @ 2023-07-31 8:48 UTC (permalink / raw)
To: Zijun Hu; +Cc: luiz.dentz, linux-bluetooth
Dear Zijun,
Am 31.07.23 um 09:46 schrieb Zijun Hu:
> Fix a logical error within parse_config_int().
Thank you for spotting and fixing this. I guess this warning was printed
on the terminal?
Although obvious, instead of duplicating the commit message summary in
the body, it would be great, if you still wrote a more elaborate commit
message. Maybe:
Having a config file with the line below
…
causes the config file to be ignored, and the warning below:
…
> ---
> src/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/main.c b/src/main.c
> index 150a5af4cca4..13501440b052 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -458,7 +458,7 @@ static bool parse_config_int(GKeyFile *config, const char *group,
> return false;
> }
>
> - if (tmp < max) {
> + if (tmp > max) {
> warn("%s.%s = %d is out of range (> %d)", group, key, tmp, max);
> return false;
> }
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Kind regards,
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1] main: Fix a logical error within parse_config_int()
2023-07-31 8:48 ` Paul Menzel
@ 2023-07-31 8:58 ` quic_zijuhu
0 siblings, 0 replies; 8+ messages in thread
From: quic_zijuhu @ 2023-07-31 8:58 UTC (permalink / raw)
To: Paul Menzel; +Cc: luiz.dentz, linux-bluetooth
On 7/31/2023 4:48 PM, Paul Menzel wrote:
> Dear Zijun,
>
>
> Am 31.07.23 um 09:46 schrieb Zijun Hu:
>> Fix a logical error within parse_config_int().
>
> Thank you for spotting and fixing this. I guess this warning was printed on the terminal?
no any warnings by following Compilation steps of README.
>
> Although obvious, instead of duplicating the commit message summary in the body, it would be great, if you still wrote a more elaborate commit message. Maybe:
>
> Having a config file with the line below
>
> …
>
> causes the config file to be ignored, and the warning below:
>
> …
>
the error is very simple, so i don't write more to explain it.
>> ---
>> src/main.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/main.c b/src/main.c
>> index 150a5af4cca4..13501440b052 100644
>> --- a/src/main.c
>> +++ b/src/main.c
>> @@ -458,7 +458,7 @@ static bool parse_config_int(GKeyFile *config, const char *group,
>> return false;
>> }
>> - if (tmp < max) {
>> + if (tmp > max) {
>> warn("%s.%s = %d is out of range (> %d)", group, key, tmp, max);
>> return false;
>> }
>
> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
>
>
> Kind regards,
>
> Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [v1] main: Fix a logical error within parse_config_int()
2023-07-31 7:46 [PATCH v1] main: Fix a logical error within parse_config_int() Zijun Hu
2023-07-31 8:48 ` Paul Menzel
@ 2023-07-31 9:16 ` bluez.test.bot
2023-07-31 9:28 ` [PATCH BlueZ v2] main: Fix integer configuration option parse failures Zijun Hu
2023-07-31 17:50 ` [PATCH v1] main: Fix a logical error within parse_config_int() patchwork-bot+bluetooth
3 siblings, 0 replies; 8+ messages in thread
From: bluez.test.bot @ 2023-07-31 9:16 UTC (permalink / raw)
To: linux-bluetooth, quic_zijuhu
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=771058
---Test result---
Test Summary:
CheckPatch PASS 0.41 seconds
GitLint PASS 0.30 seconds
BuildEll PASS 26.97 seconds
BluezMake PASS 819.40 seconds
MakeCheck PASS 11.22 seconds
MakeDistcheck PASS 158.87 seconds
CheckValgrind PASS 253.18 seconds
CheckSmatch PASS 343.26 seconds
bluezmakeextell PASS 103.67 seconds
IncrementalBuild PASS 679.27 seconds
ScanBuild PASS 1095.06 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH BlueZ v2] main: Fix integer configuration option parse failures
2023-07-31 7:46 [PATCH v1] main: Fix a logical error within parse_config_int() Zijun Hu
2023-07-31 8:48 ` Paul Menzel
2023-07-31 9:16 ` [v1] " bluez.test.bot
@ 2023-07-31 9:28 ` Zijun Hu
2023-07-31 10:46 ` [BlueZ,v2] " bluez.test.bot
2023-07-31 17:50 ` [PATCH BlueZ v2] " patchwork-bot+bluetooth
2023-07-31 17:50 ` [PATCH v1] main: Fix a logical error within parse_config_int() patchwork-bot+bluetooth
3 siblings, 2 replies; 8+ messages in thread
From: Zijun Hu @ 2023-07-31 9:28 UTC (permalink / raw)
To: luiz.dentz, pmenzel; +Cc: linux-bluetooth, quic_zijuhu
parse_config_int() has a obvious logical error, so causes many
parse failures of integer configuration options, fixed by this
change.
---
src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 150a5af4cca4..13501440b052 100644
--- a/src/main.c
+++ b/src/main.c
@@ -458,7 +458,7 @@ static bool parse_config_int(GKeyFile *config, const char *group,
return false;
}
- if (tmp < max) {
+ if (tmp > max) {
warn("%s.%s = %d is out of range (> %d)", group, key, tmp, max);
return false;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* RE: [BlueZ,v2] main: Fix integer configuration option parse failures
2023-07-31 9:28 ` [PATCH BlueZ v2] main: Fix integer configuration option parse failures Zijun Hu
@ 2023-07-31 10:46 ` bluez.test.bot
2023-07-31 17:50 ` [PATCH BlueZ v2] " patchwork-bot+bluetooth
1 sibling, 0 replies; 8+ messages in thread
From: bluez.test.bot @ 2023-07-31 10:46 UTC (permalink / raw)
To: linux-bluetooth, quic_zijuhu
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=771110
---Test result---
Test Summary:
CheckPatch PASS 0.36 seconds
GitLint PASS 0.26 seconds
BuildEll PASS 32.64 seconds
BluezMake PASS 972.40 seconds
MakeCheck PASS 13.63 seconds
MakeDistcheck PASS 187.41 seconds
CheckValgrind PASS 311.54 seconds
CheckSmatch PASS 411.05 seconds
bluezmakeextell PASS 123.87 seconds
IncrementalBuild PASS 797.78 seconds
ScanBuild PASS 1256.69 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1] main: Fix a logical error within parse_config_int()
2023-07-31 7:46 [PATCH v1] main: Fix a logical error within parse_config_int() Zijun Hu
` (2 preceding siblings ...)
2023-07-31 9:28 ` [PATCH BlueZ v2] main: Fix integer configuration option parse failures Zijun Hu
@ 2023-07-31 17:50 ` patchwork-bot+bluetooth
3 siblings, 0 replies; 8+ messages in thread
From: patchwork-bot+bluetooth @ 2023-07-31 17:50 UTC (permalink / raw)
To: Zijun Hu; +Cc: luiz.dentz, linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 31 Jul 2023 15:46:44 +0800 you wrote:
> Fix a logical error within parse_config_int().
> ---
> src/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [v1] main: Fix a logical error within parse_config_int()
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=446d8ada5790
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH BlueZ v2] main: Fix integer configuration option parse failures
2023-07-31 9:28 ` [PATCH BlueZ v2] main: Fix integer configuration option parse failures Zijun Hu
2023-07-31 10:46 ` [BlueZ,v2] " bluez.test.bot
@ 2023-07-31 17:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 8+ messages in thread
From: patchwork-bot+bluetooth @ 2023-07-31 17:50 UTC (permalink / raw)
To: Zijun Hu; +Cc: luiz.dentz, pmenzel, linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 31 Jul 2023 17:28:42 +0800 you wrote:
> parse_config_int() has a obvious logical error, so causes many
> parse failures of integer configuration options, fixed by this
> change.
> ---
> src/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [BlueZ,v2] main: Fix integer configuration option parse failures
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=446d8ada5790
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-07-31 17:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-31 7:46 [PATCH v1] main: Fix a logical error within parse_config_int() Zijun Hu
2023-07-31 8:48 ` Paul Menzel
2023-07-31 8:58 ` quic_zijuhu
2023-07-31 9:16 ` [v1] " bluez.test.bot
2023-07-31 9:28 ` [PATCH BlueZ v2] main: Fix integer configuration option parse failures Zijun Hu
2023-07-31 10:46 ` [BlueZ,v2] " bluez.test.bot
2023-07-31 17:50 ` [PATCH BlueZ v2] " patchwork-bot+bluetooth
2023-07-31 17:50 ` [PATCH v1] main: Fix a logical error within parse_config_int() patchwork-bot+bluetooth
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.