diff mbox series

[v4,4/4] eficonfig: increase the number of menu entries

Message ID 20230120084358.5919-5-masahisa.kojima@linaro.org
State Superseded
Headers show
Series eficonfig: add vertical scroll support and refactoring | expand

Commit Message

Masahisa Kojima Jan. 20, 2023, 8:43 a.m. UTC
Current eficonfig has the maximum number of menu entries and
it is 99. If there are more EFI load options and files in the
system, eficonfig can not handle it.

This commit increases this maximum number of menu entries
to INT_MAX.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
---
Newly created in v4

 include/efi_config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ilias Apalodimas Jan. 23, 2023, 3:08 p.m. UTC | #1
On Fri, Jan 20, 2023 at 05:43:58PM +0900, Masahisa Kojima wrote:
> Current eficonfig has the maximum number of menu entries and
> it is 99. If there are more EFI load options and files in the
> system, eficonfig can not handle it.
>
> This commit increases this maximum number of menu entries
> to INT_MAX.
>
> Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
> ---
> Newly created in v4
>
>  include/efi_config.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/efi_config.h b/include/efi_config.h
> index 6a104e4b1d..e5edbb5e09 100644
> --- a/include/efi_config.h
> +++ b/include/efi_config.h
> @@ -11,7 +11,7 @@
>  #include <efi_loader.h>
>  #include <menu.h>
>
> -#define EFICONFIG_ENTRY_NUM_MAX 99
> +#define EFICONFIG_ENTRY_NUM_MAX INT_MAX
>  #define EFICONFIG_VOLUME_PATH_MAX 512
>  #define EFICONFIG_FILE_PATH_MAX 512
>  #define EFICONFIG_FILE_PATH_BUF_SIZE (EFICONFIG_FILE_PATH_MAX * sizeof(u16))
> --
> 2.17.1
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
diff mbox series

Patch

diff --git a/include/efi_config.h b/include/efi_config.h
index 6a104e4b1d..e5edbb5e09 100644
--- a/include/efi_config.h
+++ b/include/efi_config.h
@@ -11,7 +11,7 @@ 
 #include <efi_loader.h>
 #include <menu.h>
 
-#define EFICONFIG_ENTRY_NUM_MAX 99
+#define EFICONFIG_ENTRY_NUM_MAX INT_MAX
 #define EFICONFIG_VOLUME_PATH_MAX 512
 #define EFICONFIG_FILE_PATH_MAX 512
 #define EFICONFIG_FILE_PATH_BUF_SIZE (EFICONFIG_FILE_PATH_MAX * sizeof(u16))