From af0bf322d7c55cc4daac1322a609eeeeb5b0d051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Ganne?= Date: Tue, 21 Jan 2020 18:35:49 +0100 Subject: [PATCH] api: do not truncate api dump file size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: fix Change-Id: I5c81d2f55057f5fba780cb12154a3fb1aef79f20 Signed-off-by: BenoƮt Ganne (cherry picked from commit aba4983ad48374a50cd93ba91f66be241f210279) --- src/vlibmemory/vlib_api_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vlibmemory/vlib_api_cli.c b/src/vlibmemory/vlib_api_cli.c index 33bea78f56b..784b890f000 100755 --- a/src/vlibmemory/vlib_api_cli.c +++ b/src/vlibmemory/vlib_api_cli.c @@ -430,7 +430,7 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename, } file_size = statb.st_size; - file_size = (file_size + 4095) & ~(4096); + file_size = (file_size + 4095) & ~(4095); hp = mmap (0, file_size, PROT_READ, MAP_PRIVATE, fd, 0);