From 5a5f4879246783932ab620b2461a7cd832ddc1f0 Mon Sep 17 00:00:00 2001
From: liuxu <liuxu156@huawei.com>
Date: Fri, 31 May 2024 16:38:26 +0800
Subject: [PATCH 098/108] cdi:add debug info

Signed-off-by: liuxu <liuxu156@huawei.com>
---
 src/daemon/modules/device/cdi/cdi_cache.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/daemon/modules/device/cdi/cdi_cache.c b/src/daemon/modules/device/cdi/cdi_cache.c
index e9a9b804..cd7158dd 100644
--- a/src/daemon/modules/device/cdi/cdi_cache.c
+++ b/src/daemon/modules/device/cdi/cdi_cache.c
@@ -306,6 +306,7 @@ static void refresh_scan_spec_func(struct cdi_scan_fn_maps *scan_fn_maps, const
             ERROR("Failed to insert device to devices by name %s", qualified);
             goto error_out;
         }
+        DEBUG("Add device %s into memory", qualified);
         free(qualified);
         qualified = NULL;
     }
@@ -445,6 +446,7 @@ static int cdi_inject_devices(struct cdi_cache *c, oci_runtime_spec *oci_spec, s
 
     for (i = 0; i < devices->len; i++) {
         device = devices->items[i];
+        DEBUG("Search cdi devices %s.", device);
         d = map_search(c->devices, (void *)device);
         if (d == NULL) {
             if (util_append_string_array(unresolved, device) != 0) {
-- 
2.25.1

