kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2_loaders.git/commit/?id=93682e883a8e88d6bf7f9bbb549ecadfad4be0b0

commit 93682e883a8e88d6bf7f9bbb549ecadfad4be0b0
Author: Kim Woelders <[email protected]>
Date:   Fri Nov 22 18:53:27 2019 +0100

    ANI loader: Make debug stuff similar to elsewhere around here
    
    And a couple of debug message tweaks.
---
 src/modules/loaders/loader_ani.c | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/modules/loaders/loader_ani.c b/src/modules/loaders/loader_ani.c
index def7bf5..a85311d 100644
--- a/src/modules/loaders/loader_ani.c
+++ b/src/modules/loaders/loader_ani.c
@@ -32,16 +32,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 
IN THE SOFTWARE.
 
 #include "loader_common.h"
 
-/* #define ANI_DBG */
-
-#ifdef ANI_DBG
-#define D(fmt, args...) \
-{ \
-  printf("Imlib2 ANI loader: "); \
-  printf(fmt, ## args); \
-}
+#define ANI_DBG 0
+#if ANI_DBG
+#define D(fmt...) printf("Imlib2 ANI loader: " fmt)
 #else
-#define D(fmt, args...)
+#define D(fmt...)
 #endif
 
 #define SWAP32(x) \
@@ -143,7 +138,7 @@ ani_cleanup(MsAni * ani)
 {
    MsChunk            *c, *c_next;
 
-   D("Failed to allocate ANI image. Cleaning up\n");
+   D("Cleaning up\n");
 
    if (!ani)
       return;
@@ -189,7 +184,7 @@ ani_load_chunk(MsAni * ani)
    chunk = calloc(1, sizeof(MsChunk *) + 2 * sizeof(DATA32) + chunk_size);
    if (!chunk)
      {
-        D("Warning, failed to allocate ANI chunk of size %d\n",
+        D("Warning, failed to allocate ANI chunk of size %ld\n",
           sizeof(MsChunk *) + 2 * sizeof(DATA32) + chunk_size);
         return NULL;
      }

-- 


Reply via email to