From 960f26f90744e2a7eab45c723df7fd2001f7abd4 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Mon, 9 Aug 2021 09:10:00 +0000 Subject: [PATCH] files-reg: do not print a warning if a file has no build_id On systems where there is no build_id we get a warning for each run Warn (criu/files-reg.c:1458): Couldn't find the build-id note for file with fd 15 Change the log level to debug for this message as the file just does not have a build_id and printing a warning clutters the CI logs. Signed-off-by: Adrian Reber --- criu/files-reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/files-reg.c b/criu/files-reg.c index b4d6f6f9a..ee54d1d7d 100644 --- a/criu/files-reg.c +++ b/criu/files-reg.c @@ -1365,7 +1365,7 @@ static int get_build_id_32(Elf32_Ehdr *file_header, unsigned char **build_id, co } if (!note_header) { - pr_warn("Couldn't find the build-id note for file with fd %d\n", fd); + pr_debug("Couldn't find the build-id note for file with fd %d\n", fd); return -1; } @@ -1455,7 +1455,7 @@ static int get_build_id_64(Elf64_Ehdr *file_header, unsigned char **build_id, co } if (!note_header) { - pr_warn("Couldn't find the build-id note for file with fd %d\n", fd); + pr_debug("Couldn't find the build-id note for file with fd %d\n", fd); return -1; }