From 0da270d9d66a7cabacdbf902a67942451793d8ce Mon Sep 17 00:00:00 2001 From: chenxiaoyi Date: Mon, 24 Feb 2025 17:46:33 +0800 Subject: [PATCH] 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 --- system/debugpoint/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/debugpoint/debug.c b/system/debugpoint/debug.c index b9696f6f5..d3861c451 100644 --- a/system/debugpoint/debug.c +++ b/system/debugpoint/debug.c @@ -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) {