X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ustd%2Flowlevel.c;h=3509bf58799ab932d27d0618dcae002477ab5084;hb=c39c72ee5890c7727ae2697f321ba1b3d6c862f5;hp=ff3875931a36c464c345c7c2a8823ee94e61f11d;hpb=d748a7de2e2a43fb576d67668a8c105f863051e7;p=ust.git diff --git a/ustd/lowlevel.c b/ustd/lowlevel.c index ff38759..3509bf5 100644 --- a/ustd/lowlevel.c +++ b/ustd/lowlevel.c @@ -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 #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");