The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxcfs/pull/343

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 0b5e60531ae16edd1788d7f20e91e9396f3c6691 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Wed, 4 Mar 2020 12:17:11 +0100
Subject: [PATCH] lxcfs: use lxcfs_info()

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 lxcfs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lxcfs.c b/lxcfs.c
index 1f4d902..11ed68c 100644
--- a/lxcfs.c
+++ b/lxcfs.c
@@ -128,14 +128,14 @@ static void do_reload(void)
                stop_loadavg();
 
        if (dlopen_handle) {
-               lxcfs_debug("%s\n", "Closing liblxcfs.so handle");
+               lxcfs_info("Closed liblxcfs.so");
                dlclose(dlopen_handle);
        }
 
        /* First try loading using ld.so */
        dlopen_handle = dlopen("liblxcfs.so", RTLD_LAZY);
        if (dlopen_handle) {
-               lxcfs_debug("%s\n", "Successfully called dlopen() on 
liblxcfs.so");
+               lxcfs_debug("Opened liblxcfs.so");
                goto good;
        }
 
@@ -152,14 +152,14 @@ static void do_reload(void)
        if (!dlopen_handle)
                log_exit("%s - Failed to open liblxcfs.so", dlerror());
        else
-               lxcfs_debug("Successfully called dlopen() on %s", 
lxcfs_lib_path);
+               lxcfs_debug("Opened %s", lxcfs_lib_path);
 
 good:
        if (loadavg_pid > 0)
                start_loadavg();
 
        if (need_reload)
-               lxcfs_error("%s\n", "lxcfs: reloaded");
+               lxcfs_info("Reloaded LXCFS");
        need_reload = 0;
 }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to