From 85fa62cafc2933131cfb02e4a8574f141a602df2 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Wed, 30 Apr 2025 09:27:34 +0300 Subject: [PATCH] l4t: use strtol for sld_type --- bootloader/l4t/l4t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootloader/l4t/l4t.c b/bootloader/l4t/l4t.c index 899b824..5c84825 100644 --- a/bootloader/l4t/l4t.c +++ b/bootloader/l4t/l4t.c @@ -889,7 +889,7 @@ static void _l4t_set_config(l4t_ctxt_t *ctxt, const ini_sec_t *ini_sec, int entr else if (!strcmp("uart_port", kv->key)) ctxt->serial_port = atoi(kv->val); else if (!strcmp("sld_type", kv->key)) - ctxt->sld_type = atoi(kv->val); + ctxt->sld_type = strtol(kv->val, NULL, 16); // Set key/val to BL33 env. _l4t_bl33_cfg_set_key(bl33_env, kv->key, kv->val);