aboutsummaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
Diffstat (limited to 'common/src')
-rw-r--r--common/src/main/java/com/cablelabs/vcpe/common/Dbg.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/common/src/main/java/com/cablelabs/vcpe/common/Dbg.java b/common/src/main/java/com/cablelabs/vcpe/common/Dbg.java
new file mode 100644
index 0000000..b98f1e1
--- /dev/null
+++ b/common/src/main/java/com/cablelabs/vcpe/common/Dbg.java
@@ -0,0 +1,24 @@
+package com.cablelabs.vcpe.common;
+
+/**
+ * Created by steve on 5/25/15.
+ */
+public class Dbg {
+
+ private static final String TAB = " ";
+
+
+ static public void p( String s) { p( 0, "", s);}
+ static public void p( int tabs, String s) { p( tabs, "", s);}
+ static public void p( int tabs, String pre, String s){
+ System.out.println(tab(tabs) + pre + s);
+ }
+
+ static private String tab (int tabs) {
+ String t = new String();
+ for ( int i = 0; i < tabs; i++ ) {
+ t = t + TAB;
+ }
+ return t;
+ }
+}