From a85b401c8e006557e832c4e8ef402cabe1801b4b Mon Sep 17 00:00:00 2001 From: Katarzyna Kujawa Date: Mon, 28 Sep 2020 14:57:32 +0200 Subject: [PATCH] Fix typo in libipmctl Signed-off-by: Katarzyna Kujawa --- docs/development/build.md | 6 +++--- nvm/machine_libipmctl.go | 2 +- nvm/machine_no_libipmctl.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/development/build.md b/docs/development/build.md index 1575764bf2..fe7e016711 100644 --- a/docs/development/build.md +++ b/docs/development/build.md @@ -33,12 +33,12 @@ For integration tests, see the [integration testing](integration_testing.md) pag ### Non-volatile Memory Support cAdvisor can be linked against [libipmctl](https://github.com/intel/ipmctl) library that allows to gather information about IntelĀ® Optaneā„¢ DC Persistent memory. If you want to build cAdvisor with libipmctl support you must meet following requirements: -* `libimpctl-devel` must be installed on build system. -* `libimpctl` must be installed on all systems where cAdvisor is running. +* `libipmctl-devel` must be installed on build system. +* `libipmctl` must be installed on all systems where cAdvisor is running. Detailed information about building `libipmctl` can be found in the project's [README](https://github.com/intel/ipmctl#build). Make sure to use the most up to date released version. Functionality that relies on `libipmctl` was tested against version 02.00.00.3719 of the library. -To enable `libimpctl` support `GO_FLAGS` variable must be set: +To enable `libipmctl` support `GO_FLAGS` variable must be set: ``` $GOPATH/src/github.com/google/cadvisor $ GO_FLAGS="-tags=libipmctl,netgo" make build diff --git a/nvm/machine_libipmctl.go b/nvm/machine_libipmctl.go index 2eb717b600..89f254a191 100644 --- a/nvm/machine_libipmctl.go +++ b/nvm/machine_libipmctl.go @@ -97,7 +97,7 @@ func GetInfo() (info.NVMInfo, error) { nvmInfo := info.NVMInfo{} if !isNVMLibInitialized { - klog.V(1).Info("libimpctl has not been initialized. NVM information will not be available") + klog.V(1).Info("libipmctl has not been initialized. NVM information will not be available") return nvmInfo, nil } diff --git a/nvm/machine_no_libipmctl.go b/nvm/machine_no_libipmctl.go index c82962b899..21311f8a7f 100644 --- a/nvm/machine_no_libipmctl.go +++ b/nvm/machine_no_libipmctl.go @@ -30,5 +30,5 @@ func GetInfo() (info.NVMInfo, error) { // Finalize un-initializes libipmctl. See https://github.com/google/cadvisor/issues/2457. // When libipmctl is not available it just logs that it's being called. func Finalize() { - klog.V(4).Info("libimpctl not available, doing nothing.") + klog.V(4).Info("libipmctl not available, doing nothing.") }