]> mj.ucw.cz Git - libucw.git/commitdiff
Fastbuf: Fixed compilation with LOCAL_DEBUG.
authorPavel Charvat <pchar@ucw.cz>
Sun, 4 Feb 2018 08:38:30 +0000 (09:38 +0100)
committerPavel Charvat <pchar@ucw.cz>
Sun, 4 Feb 2018 08:38:30 +0000 (09:38 +0100)
ucw/fastbuf.c

index 22501f43ed87cba8ff3e1529da0ebe2b57038b8c..476221af75fb36cc83a6b5828961e645c1d54090 100644 (file)
@@ -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);