summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-05-16 14:31:03 +0200
committerThomas Haller <thaller@redhat.com>2023-05-17 20:27:56 +0200
commitca0c68722b0576e843334b4778a5418618504300 (patch)
tree07444f31f511c09a559625a09fdc690a06053585
parent4525f0d3334800f3fb1980a7a69413549218396f (diff)
downloadNetworkManager-ca0c68722b0576e843334b4778a5418618504300.tar.gz
cloud-setup: debug log when URL is mocked
-rw-r--r--src/nm-cloud-setup/nm-cloud-setup-utils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nm-cloud-setup/nm-cloud-setup-utils.h b/src/nm-cloud-setup/nm-cloud-setup-utils.h
index f4e274226a..4ca4634c25 100644
--- a/src/nm-cloud-setup/nm-cloud-setup-utils.h
+++ b/src/nm-cloud-setup/nm-cloud-setup-utils.h
@@ -108,6 +108,13 @@ again:
\
if (!g_atomic_pointer_compare_and_exchange(&base_cached, NULL, base)) \
goto again; \
+ \
+ if (!nm_streq(base, ("" default_host ""))) { \
+ _LOGD("test: mock %s=\"%s\" (default \"%s\")", \
+ "" nmcs_env_host "", \
+ base, \
+ "" default_host ""); \
+ } \
} \
\
return base; \