This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 25d43c65db9c73b4b5f6f29268f92b6795fafb40 Author: wangmingrong1 <wangmingro...@xiaomi.com> AuthorDate: Fri Feb 28 12:55:36 2025 +0800 apps/gcov: Alloc to strip 0 Signed-off-by: wangmingrong1 <wangmingro...@xiaomi.com> --- system/gcov/gcov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/gcov/gcov.c b/system/gcov/gcov.c index 64acb3c0e..3b66cfcaf 100644 --- a/system/gcov/gcov.c +++ b/system/gcov/gcov.c @@ -71,7 +71,7 @@ static void show_usage(FAR const char *progname) static void gcov_dump(FAR const char * path, FAR const char *strip) { - if (path == NULL || access(path, F_OK) != 0 || atoi(strip) <= 0) + if (path == NULL || access(path, F_OK) != 0 || atoi(strip) < 0) { fprintf(stderr, "ERROR: Invalid parameter\n"); return; @@ -157,7 +157,7 @@ static void gcov_stdout_dump(void) int main(int argc, FAR char *argv[]) { - FAR const char *strip = "99"; + FAR const char *strip = CONFIG_COVERAGE_DEFAULT_PREFIX_STRIP; FAR const char *path = NULL; int option;