start adding LGPL headers
[ust.git] / ustd / lowlevel.c
index ff3875931a36c464c345c7c2a8823ee94e61f11d..3509bf58799ab932d27d0618dcae002477ab5084 100644 (file)
@@ -1,3 +1,20 @@
+/* Copyright (C) 2009  Pierre-Marc Fournier
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
+ */
+
 #include <assert.h>
 
 #include "tracer.h"
@@ -29,8 +46,8 @@ void finish_consuming_dead_subbuffer(struct buffer_info *buf)
         * last place written. */
        long last_subbuf = (write_offset - 1) / buf->subbuf_size;
 
-       DBG("first_subbuf=%d", first_subbuf);
-       DBG("last_subbuf=%d", last_subbuf);
+       DBG("first_subbuf=%ld", first_subbuf);
+       DBG("last_subbuf=%ld", last_subbuf);
 
        if(last_subbuf - first_subbuf >= buf->n_subbufs) {
                DBG("an overflow has occurred, nothing can be recovered");
This page took 0.023703 seconds and 4 git commands to generate.