From 9d79f82e24187d000c2994e8e56ea08fbc98ae79 Mon Sep 17 00:00:00 2001 From: "Alan C. Assis" Date: Tue, 10 Aug 2021 11:05:14 -0300 Subject: [PATCH] mmap: Fix note: initialize the variable 'ret' --- fs/mmap/fs_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/mmap/fs_mmap.c b/fs/mmap/fs_mmap.c index c764af29bf..c99da4c2c0 100644 --- a/fs/mmap/fs_mmap.c +++ b/fs/mmap/fs_mmap.c @@ -117,7 +117,7 @@ static int file_mmap_(FAR struct file *filep, FAR void *start, *mapped = kernel ? kmm_zalloc(length) : kumm_zalloc(length); if (*mapped == NULL) { - ferr("ERROR: kumm_alloc() failed: %d\n", ret); + ferr("ERROR: kumm_alloc() failed, enable DEBUG_MM for info!\n"); return -ENOMEM; }