system/debugpoint: fix bug the length option parsing error

The debugpoint program has an option "-l" which requires an argument,
which means the optstring to getopt() should be "l:".

Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
This commit is contained in:
chenxiaoyi 2025-02-24 17:46:33 +08:00 committed by Alan C. Assis
parent b84f93c4df
commit 0da270d9d6

View file

@ -289,7 +289,7 @@ static bool parse_options(int argc, FAR char *argv[],
struct debug_option *opt)
{
int cmd;
while ((cmd = getopt(argc, argv, "r:w:b:x:cl")) != -1)
while ((cmd = getopt(argc, argv, "r:w:b:x:cl:")) != -1)
{
switch (cmd)
{