]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add some debug logging to the message localization stuff.
authorMichael R Sweet <msweet@msweet.org>
Thu, 18 Apr 2024 19:57:57 +0000 (15:57 -0400)
committerMichael R Sweet <msweet@msweet.org>
Thu, 18 Apr 2024 19:57:57 +0000 (15:57 -0400)
cups/language.c
cups/ppd-cache.c

index 2a65ea4412616aadf9f0ee09a741f5e551f7a8ae..50675f2e1b2e448a4d1a4a9ca7a63a9fc1236826 100644 (file)
@@ -772,7 +772,10 @@ _cupsMessageLoad(cups_array_t *a,  /* I - Existing message array */
        */
 
        if (m.str && (m.str[0] || (flags & _CUPS_MESSAGE_EMPTY)))
+       {
+         DEBUG_printf("5_cupsMessageLoad: Adding \"%s\"=\"%s\"", m.msg, m.str);
          cupsArrayAdd(a, &m);
+       }
 
        /*
        * Create a new message with the given msgid string...
@@ -809,7 +812,10 @@ _cupsMessageLoad(cups_array_t *a,  /* I - Existing message array */
     */
 
     if (m.msg && m.str && (m.str[0] || (flags & _CUPS_MESSAGE_EMPTY)))
+    {
+      DEBUG_printf("5_cupsMessageLoad: Adding \"%s\"=\"%s\"", m.msg, m.str);
       cupsArrayAdd(a, &m);
+    }
   }
 
  /*
index 29ba78fa0c33e9759cc34cb4f130b2768554ba60..40c5edf92ac7b6ca7aaab511db5ad004833ad3e3 100644 (file)
@@ -1495,7 +1495,6 @@ _ppdCacheCreateWithPPD(
       map->pwg = strdup(pwg_keyword);
       map->ppd = strdup(choice->choice);
 
-
      /*
       * Add localized text for PWG keyword to message catalog...
       */