]> git.itanic.dy.fi Git - log-plotter/commitdiff
Rename debug.[ch] to trace.[ch]
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 20 Oct 2013 11:56:43 +0000 (14:56 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 20 Oct 2013 11:56:43 +0000 (14:56 +0300)
This file is more about tracing than debugging, Rename it to match
more what it really is about.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Makefile
baud.c
data.c
main.c
options.c
trace.c [moved from debug.c with 95% similarity]
trace.h [moved from debug.h with 100% similarity]

index bb7cfec..328d6a2 100644 (file)
--- 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 (file)
--- a/baud.c
+++ b/baud.c
@@ -5,7 +5,8 @@
 #include <string.h>
 #include <linux/termios.h>
 #include <unistd.h>
-#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 (file)
--- a/data.c
+++ b/data.c
@@ -10,7 +10,7 @@
 #include <math.h>
 
 #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 (file)
--- 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[])
index 706d855..48cd259 100644 (file)
--- a/options.c
+++ b/options.c
@@ -4,7 +4,7 @@
 #include <string.h>
 
 #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 (file)
--- a/debug.c
+++ b/trace.c
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 
-#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