From d44a215cef8d81a7dbb0f52168f5cca2cfc31aed Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sun, 20 Oct 2013 14:56:43 +0300 Subject: [PATCH] Rename debug.[ch] to trace.[ch] This file is more about tracing than debugging, Rename it to match more what it really is about. Signed-off-by: Timo Kokkonen --- Makefile | 2 +- baud.c | 3 ++- data.c | 2 +- main.c | 2 +- options.c | 2 +- debug.c => trace.c | 2 +- debug.h => trace.h | 0 7 files changed, 7 insertions(+), 6 deletions(-) rename debug.c => trace.c (95%) rename debug.h => trace.h (100%) diff --git a/Makefile b/Makefile index bb7cfec..328d6a2 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CC=gcc LD=ld CFLAGS=-Wall -O2 -g -fPIC -LOG-PLOTTER_OBJS = baud.o main.o options.o debug.o data.o +LOG-PLOTTER_OBJS = baud.o main.o options.o trace.o data.o ALL_OBJS = $(LOG-PLOTTER_OBJS) ALL_DEBS = $(patsubst %.o,.%.o.d,$(ALL_OBJS)) diff --git a/baud.c b/baud.c index 4fd5168..0d3805e 100644 --- a/baud.c +++ b/baud.c @@ -5,7 +5,8 @@ #include #include #include -#include "debug.h" + +#include "trace.h" /* * HACK: declare the ioctl function by hand... diff --git a/data.c b/data.c index 87b4b1d..890e6bd 100644 --- a/data.c +++ b/data.c @@ -10,7 +10,7 @@ #include #include "data.h" -#include "debug.h" +#include "trace.h" #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) diff --git a/main.c b/main.c index 51e5260..39ef41c 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ #include "options.h" #include "baud.h" -#include "debug.h" +#include "trace.h" #include "data.h" int main(int argc, char *argv[]) diff --git a/options.c b/options.c index 706d855..48cd259 100644 --- a/options.c +++ b/options.c @@ -4,7 +4,7 @@ #include #include "options.h" -#include "debug.h" +#include "trace.h" void print_help_and_die(const char *exec_name) { diff --git a/debug.c b/trace.c similarity index 95% rename from debug.c rename to trace.c index dc89f6d..2ef8d8f 100644 --- a/debug.c +++ b/trace.c @@ -1,7 +1,7 @@ #include #include -#include "debug.h" +#include "trace.h" int trace_level = TRACE_INFO; diff --git a/debug.h b/trace.h similarity index 100% rename from debug.h rename to trace.h -- 2.44.0