X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=images%2Fcontext.c;h=baebb9b8d53d34c20d14a69f97dd524a877f0f83;hb=306801fc6da02fcbed53db6ff98cd0277b763d9a;hp=bcabc520d656158abf7f37858b38fc4ac28c7334;hpb=54caf9eea63bd7f50bbe201b60c80aa93b0f6a01;p=libucw.git diff --git a/images/context.c b/images/context.c index bcabc520..baebb9b8 100644 --- a/images/context.c +++ b/images/context.c @@ -35,7 +35,7 @@ image_context_cleanup(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 @@ -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, ...) { - ctx->msg_code = code; 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); - ctx->msg_callback(ctx); } void