]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
cpuview: log non-fatal error in verbose mode only
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Oct 2021 08:22:40 +0000 (10:22 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Oct 2021 08:22:40 +0000 (10:22 +0200)
Fixes: #482
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/proc_cpuview.c

index 653e7ebb6651f11357d2262703371cd1228d2cdc..b3bed6d01363bb8d9c40c1a8c1a20fe904006cb6 100644 (file)
@@ -584,10 +584,9 @@ int cpuview_proc_stat(const char *cg, const char *cpuset,
 
                if (all_used >= cg_used) {
                        cg_cpu_usage[curcpu].idle = idle + (all_used - cg_used);
-
                } else {
-                       lxcfs_error("cpu%d from %s has unexpected cpu time: %" PRIu64 " in /proc/stat, %" PRIu64 " in cpuacct.usage_all; unable to determine idle time",
-                                   curcpu, cg, all_used, cg_used);
+                       lxcfs_v("cpu%d from %s has unexpected cpu time: %" PRIu64 " in /proc/stat, %" PRIu64 " in cpuacct.usage_all; unable to determine idle time",
+                               curcpu, cg, all_used, cg_used);
                        cg_cpu_usage[curcpu].idle = idle;
                }
        }