From: Pavel Charvat Date: Sun, 4 Feb 2018 08:38:30 +0000 (+0100) Subject: Fastbuf: Fixed compilation with LOCAL_DEBUG. X-Git-Tag: v6.5.9~9 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7a8bf8a210825d2a45a066c04378670833ea7171;p=libucw.git Fastbuf: Fixed compilation with LOCAL_DEBUG. --- diff --git a/ucw/fastbuf.c b/ucw/fastbuf.c index 22501f43..476221af 100644 --- a/ucw/fastbuf.c +++ b/ucw/fastbuf.c @@ -24,7 +24,7 @@ void bclose(struct fastbuf *f) { bflush(f); res_detach(f->res); - DBG("FB: closing", f); + DBG("FB: closing"); if (f->close) f->close(f); /* Should always free all internal resources, even if it throws an exception */ } @@ -32,9 +32,9 @@ void bclose(struct fastbuf *f) void NONRET bthrow(struct fastbuf *f, const char *id, const char *fmt, ...) { - DBG("FB: throwing %s", full_id); char full_id[16]; snprintf(full_id, sizeof(full_id), "ucw.fb.%s", id); + DBG("FB: throwing %s", full_id); ASSERT(!(f->flags & FB_DEAD)); /* Only one bthrow() is allowed before bclose() */ va_list args; va_start(args, fmt);