From 9ac313f551818495088241e5c985d9801ff1e957 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 18 Aug 2023 11:34:26 +0200 Subject: [PATCH] Instantiate nvpci.Interface with logger Signed-off-by: Evan Lezar --- cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go b/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go index 76acee41..7dcabf0e 100644 --- a/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go +++ b/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go @@ -73,6 +73,7 @@ func newAllPossible(logger logger.Interface, devRoot string) (nodeLister, error) func (m allPossible) DeviceNodes() ([]deviceNode, error) { gpus, err := nvpci.New( nvpci.WithPCIDevicesRoot(filepath.Join(m.devRoot, nvpci.PCIDevicesRoot)), + nvpci.WithLogger(m.logger), ).GetGPUs() if err != nil { return nil, fmt.Errorf("failed to get GPU information: %v", err)