]> mj.ucw.cz Git - libucw.git/blobdiff - images/context.c
Split autoconf.cfg
[libucw.git] / images / context.c
index bcabc520d656158abf7f37858b38fc4ac28c7334..13ce4b8c9883bbb17e247f4959af48a3b2430d2c 100644 (file)
@@ -9,8 +9,8 @@
 
 #undef LOCAL_DEBUG
 
 
 #undef LOCAL_DEBUG
 
-#include "lib/lib.h"
-#include "lib/bbuf.h"
+#include "ucw/lib.h"
+#include "ucw/bbuf.h"
 #include "images/images.h"
 #include "images/error.h"
 
 #include "images/images.h"
 #include "images/error.h"
 
@@ -35,7 +35,7 @@ image_context_cleanup(struct image_context *ctx)
 void
 image_context_msg_default(struct image_context *ctx)
 {
 void
 image_context_msg_default(struct image_context *ctx)
 {
-  log(ctx->msg_code >> 24, "%s", ctx->msg);
+  msg(ctx->msg_code >> 24, "%s", ctx->msg);
 }
 
 void
 }
 
 void
@@ -46,12 +46,10 @@ image_context_msg_silent(struct image_context *ctx UNUSED)
 void
 image_context_msg(struct image_context *ctx, uns code, char *msg, ...)
 {
 void
 image_context_msg(struct image_context *ctx, uns code, char *msg, ...)
 {
-  ctx->msg_code = code;
   va_list args;
   va_start(args, msg);
   va_list args;
   va_start(args, msg);
-  ctx->msg = bb_vprintf(&ctx->msg_buf, msg, args);
+  image_context_vmsg(ctx, code, msg, args);
   va_end(args);
   va_end(args);
-  ctx->msg_callback(ctx);
 }
 
 void
 }
 
 void