Add some additional logging about what files are being matched, locked
or deleted as part of the unit tests. This could help with debugging any
issues with the tests.

Signed-off-by: Bruce Richardson <[email protected]>
---
 app/test/test_eal_flags.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index aa70f11434..f54b770ae3 100644
--- a/app/test/test_eal_flags.c
+++ b/app/test/test_eal_flags.c
@@ -214,6 +214,8 @@ process_hugefiles(const char * prefix, enum hugepage_action 
action)
                        case HUGEPAGE_CHECK_EXISTS:
                                {
                                        /* file exists, return */
+                                       printf("Hugepage file %s/%s exists, 
matching prefix %s\n",
+                                                       hugedir, 
dirent->d_name, hugefile_prefix);
                                        closedir(hugepage_dir);
                                        result = 1;
                                        goto end;
@@ -236,6 +238,7 @@ process_hugefiles(const char * prefix, enum hugepage_action 
action)
                                                result = -1;
                                                goto end;
                                        }
+                                       printf("Deleted hugepage file %s\n", 
file_path);
                                        result = 1;
                                }
                                break;
@@ -269,6 +272,8 @@ process_hugefiles(const char * prefix, enum hugepage_action 
action)
                                                goto end;
                                        }
                                        result = 1;
+                                       printf("Hugepage file %s/%s is 
locked\n",
+                                               hugedir, dirent->d_name);
                                        close(fd);
                                }
                                break;
-- 
2.51.0

Reply via email to