Fix misspellings

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2023-08-25 16:14:06 +02:00
parent 2fad708556
commit 12dc12ce09
18 changed files with 22 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ import (
// The supplied NVML Library is used to query the expected driver version.
func NewDriverDiscoverer(logger logger.Interface, driverRoot string, nvidiaCTKPath string, nvmllib nvml.Interface) (discover.Discover, error) {
if r := nvmllib.Init(); r != nvml.SUCCESS {
return nil, fmt.Errorf("failed to initalize NVML: %v", r)
return nil, fmt.Errorf("failed to initialize NVML: %v", r)
}
defer nvmllib.Shutdown()

View File

@@ -41,7 +41,7 @@ func (l *nvmllib) GetAllDeviceSpecs() ([]specs.Device, error) {
var deviceSpecs []specs.Device
if r := l.nvmllib.Init(); r != nvml.SUCCESS {
return nil, fmt.Errorf("failed to initalize NVML: %v", r)
return nil, fmt.Errorf("failed to initialize NVML: %v", r)
}
defer l.nvmllib.Shutdown()

View File

@@ -85,7 +85,7 @@ func (o *builder) Build() (*spec, error) {
if raw.Version == DetectMinimumVersion {
minVersion, err := cdi.MinimumRequiredVersion(raw)
if err != nil {
return nil, fmt.Errorf("failed to get minumum required CDI spec version: %v", err)
return nil, fmt.Errorf("failed to get minimum required CDI spec version: %v", err)
}
raw.Version = minVersion
}