This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new 0da270d9d system/debugpoint: fix bug the length option parsing error 0da270d9d is described below commit 0da270d9d66a7cabacdbf902a67942451793d8ce Author: chenxiaoyi <chenxia...@xiaomi.com> AuthorDate: Mon Feb 24 17:46:33 2025 +0800 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 <chenxia...@xiaomi.com> --- 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) {