From b6d5dbacc6254fb17df4240f8da06c6a002f165b Mon Sep 17 00:00:00 2001
From: Uwe Schulzweida <uwe.schulzweida@mpimet.mpg.de>
Date: Mon, 20 Jan 2025 14:17:56 +0100
Subject: [PATCH] cdf__enddef: replaced NSSWITCH_NC_ENDDEF by
 NSSWITCH_NC__ENDDEF

---
 src/cdf_int.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cdf_int.c b/src/cdf_int.c
index a59731b2c..e12ec4d9d 100644
--- a/src/cdf_int.c
+++ b/src/cdf_int.c
@@ -134,7 +134,7 @@ cdf__enddef(int ncid, int streamID, size_t hdr_pad)
   size_t r_align = 4UL;    // [B] Alignment of beginning of data section for record variables
 
   // nc_enddef(ncid) is equivalent to nc__enddef(ncid, 0, 4, 0, 4)
-  cdi_nc__enddef_funcp my_nc__enddef = (cdi_nc__enddef_funcp) namespaceSwitchGet(NSSWITCH_NC_ENDDEF).func;
+  cdi_nc__enddef_funcp my_nc__enddef = (cdi_nc__enddef_funcp) namespaceSwitchGet(NSSWITCH_NC__ENDDEF).func;
   int status = my_nc__enddef(ncid, streamID, hdr_pad, v_align, v_minfree, r_align);
   if (status != NC_NOERR) Error("%s", nc_strerror(status));
 }
@@ -646,7 +646,7 @@ cdf_put_att_text(int ncid, int varid, const char *name, size_t len, const char *
 {
   int status = nc_put_att_text(ncid, varid, name, len, tp);
 
-  if (CDF_Debug || status != NC_NOERR) Message("ncid=%d  varid=%d  att=%s  text=%.*s", ncid, varid, name, (int) len, tp);
+  if (CDF_Debug || status != NC_NOERR) Message("ncid=%d  varid=%d  att=%s  text='%.*s'", ncid, varid, name, (int) len, tp);
 
   if (status != NC_NOERR) Error("%s", nc_strerror(status));
 }
-- 
GitLab