]> mj.ucw.cz Git - libucw.git/blobdiff - images/error.h
tableprinter: update of tests
[libucw.git] / images / error.h
index 92f3766fbac2d1edb5aaaa5ab26b3c117349bf53..77760b2a2197748e7bd645c075a5bd95e2cdcd1a 100644 (file)
@@ -1,7 +1,11 @@
 #ifndef _IMAGES_ERROR_H
 #define _IMAGES_ERROR_H
 
-extern uns image_trace; /* ImageLib.Trace */ 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define image_trace ucw_image_trace
+#endif
+
+extern uint image_trace; /* ImageLib.Trace */
 
 /* Error codes */
 
@@ -29,7 +33,7 @@ enum image_msg_code {
 #define IMAGE_ERROR(ctx, type, msg...) image_context_msg((ctx), IMAGE_MSG_ERROR | (type), msg)
 
 #define IMAGE_TRACE(ctx, level, msg...) do { \
-       struct image_context *_ctx = (ctx); uns _level = (level); \
+       struct image_context *_ctx = (ctx); uint _level = (level); \
        if (_level < _ctx->tracing_level) image_context_msg(_ctx, IMAGE_MSG_TRACE | _level, msg); } while (0)
 
 #endif