[PATCH 3/3] test/eal_flags: add extra logging for file prefix tests

Bruce Richardson bruce.richardson at intel.com
Tue Jan 20 12:25:52 CET 2026


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 <bruce.richardson at intel.com>
---
 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



More information about the dev mailing list