summaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorjiangxiaoming <jiangxiaoming@outlook.com>2020-10-10 17:32:11 +0800
committerjiangxiaoming <jiangxiaoming@outlook.com>2020-10-10 17:32:11 +0800
commitc9e9b976d4670b0211806c53eac84678da59b15e (patch)
tree68cb2202e2bd60e4ee5ea2cfa89fcbe56fd2f567 /src/svm
parent1ab533cba2202e73c2296d7677d0b335f2afad7b (diff)
misc: clib_unix_warning usage error
Type: fix Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com> Change-Id: Ibc4e961388d0976b55b9b936d6a37d36cddab5fe
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/ssvm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c
index c030650f9f2..d2788e89222 100644
--- a/src/svm/ssvm.c
+++ b/src/svm/ssvm.c
@@ -231,14 +231,14 @@ ssvm_server_init_memfd (ssvm_private_t * memfd)
if (memfd->fd == CLIB_MEM_ERROR)
{
- clib_unix_warning (0, "failed to create memfd");
+ clib_unix_warning ("failed to create memfd");
return SSVM_API_ERROR_CREATE_FAILURE;
}
log2_page_size = clib_mem_get_fd_log2_page_size (memfd->fd);
if (log2_page_size == 0)
{
- clib_unix_warning (0, "cannot determine page size");
+ clib_unix_warning ("cannot determine page size");
return SSVM_API_ERROR_CREATE_FAILURE;
}
@@ -246,7 +246,7 @@ ssvm_server_init_memfd (ssvm_private_t * memfd)
if ((ftruncate (memfd->fd, n_pages << log2_page_size)) == -1)
{
- clib_unix_warning (0, "memfd ftruncate failure");
+ clib_unix_warning ("memfd ftruncate failure");
return SSVM_API_ERROR_CREATE_FAILURE;
}
@@ -367,7 +367,7 @@ ssvm_server_init_private (ssvm_private_t * ssvm)
log2_page_size = clib_mem_get_log2_page_size ();
if (log2_page_size == 0)
{
- clib_unix_warning (0, "cannot determine page size");
+ clib_unix_warning ("cannot determine page size");
return SSVM_API_ERROR_CREATE_FAILURE;
}