]> 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 bb7cfecf437e9e75476ee102f8d16a4aaaad81bb..328d6a2dd365c717f1d5a50430e7e1632fb2e769 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 4fd5168db7e373570e8846055abb2f9c591f2bba..0d3805ef48a7d00b9d3d5b0931f3ec26ddfaa8e9 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 87b4b1d3b9e78d97d69d60cb0c4ae6dd1b88cb80..890e6bdebcf1a7a245cac4d22b3d93eca1a3c70c 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 51e52605dafc2590a9cd160da1f2d014e0516d98..39ef41cd859ba328c23d8b556ae0f4c72d8f96c0 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 706d8556981ad73bd018cd1aea4d68ebdc622018..48cd259a3fa754dcf79723229fbd9e1b56eb07b5 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 dc89f6d3d1a527796d457169e8e1e2f7dbc4c292..2ef8d8f0cc48cd81122376d0d3e532651995ffc5 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