From 201232dae35f5ad1b02e3c8330b3b009b188f795 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 30 Jan 2023 13:39:08 +0100 Subject: [PATCH] Add logging of minimum CDI version Signed-off-by: Evan Lezar --- cmd/nvidia-ctk/cdi/generate/generate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/nvidia-ctk/cdi/generate/generate.go b/cmd/nvidia-ctk/cdi/generate/generate.go index 93334eb3..0b0de708 100644 --- a/cmd/nvidia-ctk/cdi/generate/generate.go +++ b/cmd/nvidia-ctk/cdi/generate/generate.go @@ -279,6 +279,8 @@ func (m command) generateSpec(root string, nvidiaCTKPath string, namer deviceNam if err != nil { return nil, fmt.Errorf("failed to get minumum required CDI spec version: %v", err) } + m.logger.Infof("Using minimum required CDI spec version: %s", minVersion) + spec.Version = minVersion return &spec, nil