summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-02-08 11:55:58 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-02-08 12:04:22 +0100
commita2101a5c0018328d2d994b06562f14b22fb05d70 (patch)
tree3974f1a21d8507f9646ae6222a26be7b8351c9cd
parent38612b54904e6b8c422e7f1cb21878fa34057c56 (diff)
efl-mono: Turn printfs into debug messages.
Summary: Cleaner output by default. Test Plan: Run examples and tests Reviewers: segfaultxavi, vitor.sousa Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7895
-rw-r--r--src/bindings/mono/ecore_evas_mono/ecore_evas.cs2
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs20
2 files changed, 8 insertions, 14 deletions
diff --git a/src/bindings/mono/ecore_evas_mono/ecore_evas.cs b/src/bindings/mono/ecore_evas_mono/ecore_evas.cs
index fbbea7d9e1..68993fb2d6 100644
--- a/src/bindings/mono/ecore_evas_mono/ecore_evas.cs
+++ b/src/bindings/mono/ecore_evas_mono/ecore_evas.cs
@@ -25,7 +25,7 @@ public class EcoreEvas
25 ecore_evas_init(); 25 ecore_evas_init();
26 handle = ecore_evas_new(IntPtr.Zero, 0, 0, 640, 480, IntPtr.Zero); 26 handle = ecore_evas_new(IntPtr.Zero, 0, 0, 640, 480, IntPtr.Zero);
27 if(handle == IntPtr.Zero) 27 if(handle == IntPtr.Zero)
28 System.Console.WriteLine("Couldn't create a ecore evas"); 28 Eina.Log.Error("Couldn't create a ecore evas");
29 ecore_evas_show(handle); 29 ecore_evas_show(handle);
30 } 30 }
31 31
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index c7979cc70d..16acf6a0e6 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -197,15 +197,10 @@ public class Globals {
197 197
198 var interface_list = EoG.get_efl_interfaces(type); 198 var interface_list = EoG.get_efl_interfaces(type);
199 199
200 System.Console.WriteLine ("Interafaces: {0}", interface_list.Count); 200 Eina.Log.Debug($"Going to register new class named {class_name}");
201
202 Eina.Log.Debug("Going to register!");
203 IntPtr klass = EoG.call_efl_class_new(description_ptr, base_klass, interface_list); 201 IntPtr klass = EoG.call_efl_class_new(description_ptr, base_klass, interface_list);
204 if(klass == IntPtr.Zero) 202 if(klass == IntPtr.Zero)
205 {
206 Eina.Log.Error("klass was not registered"); 203 Eina.Log.Error("klass was not registered");
207 Console.WriteLine("klass was not registered");
208 }
209 else 204 else
210 Eina.Log.Debug("Registered class successfully"); 205 Eina.Log.Debug("Registered class successfully");
211 return klass; 206 return klass;
@@ -246,12 +241,12 @@ public class Globals {
246 } 241 }
247 public static byte class_initializer_call(IntPtr klass, System.Type type) 242 public static byte class_initializer_call(IntPtr klass, System.Type type)
248 { 243 {
249 Console.WriteLine("class_intiailizer_call 0x{1} {0}", type, klass); 244 Eina.Log.Debug($"called with 0x{klass.ToInt64()} {type}");
250 Efl.Eo.NativeClass nativeClass = get_native_class(type.BaseType); 245 Efl.Eo.NativeClass nativeClass = get_native_class(type.BaseType);
251 246
252 if (nativeClass != null) 247 if (nativeClass != null)
253 { 248 {
254 Console.WriteLine("nativeClass != null"); 249 Eina.Log.Debug("nativeClass != null");
255 var descs = nativeClass.GetEoOps(type); 250 var descs = nativeClass.GetEoOps(type);
256 var count = descs.Count; 251 var count = descs.Count;
257 252
@@ -265,7 +260,7 @@ public class Globals {
265 if(nc != null) 260 if(nc != null)
266 { 261 {
267 var moredescs = nc.GetEoOps(type); 262 var moredescs = nc.GetEoOps(type);
268 Console.WriteLine("adding {0} more descs to registration", moredescs.Count); 263 Eina.Log.Debug("adding {moredescs.Count} more descs to registration");
269 descs.AddRange(moredescs); 264 descs.AddRange(moredescs);
270 count = descs.Count; 265 count = descs.Count;
271 } 266 }
@@ -288,7 +283,7 @@ public class Globals {
288 //EoKlass = klass; 283 //EoKlass = klass;
289 } 284 }
290 else 285 else
291 Console.WriteLine("nativeClass == null"); 286 Eina.Log.Debug("nativeClass == null");
292 287
293 return 1; 288 return 1;
294 } 289 }
@@ -353,7 +348,6 @@ public class Globals {
353 public static IntPtr instantiate_start(IntPtr klass, Efl.Object parent) 348 public static IntPtr instantiate_start(IntPtr klass, Efl.Object parent)
354 { 349 {
355 Eina.Log.Debug($"Instantiating from klass 0x{klass.ToInt64():x}"); 350 Eina.Log.Debug($"Instantiating from klass 0x{klass.ToInt64():x}");
356 Console.WriteLine($"Instantiating from klass 0x{klass.ToInt64():x}");
357 System.IntPtr parent_ptr = System.IntPtr.Zero; 351 System.IntPtr parent_ptr = System.IntPtr.Zero;
358 if(parent != null) 352 if(parent != null)
359 parent_ptr = parent.NativeHandle; 353 parent_ptr = parent.NativeHandle;
@@ -364,8 +358,8 @@ public class Globals {
364 throw new Exception("Instantiation failed"); 358 throw new Exception("Instantiation failed");
365 } 359 }
366 360
367 Console.WriteLine($"Eo instance right after internal_start 0x{eo.ToInt64():x} with refcount {Efl.Eo.Globals.efl_ref_count(eo)}"); 361 Eina.Log.Debug($"Eo instance right after internal_start 0x{eo.ToInt64():x} with refcount {Efl.Eo.Globals.efl_ref_count(eo)}");
368 Console.WriteLine($"Parent was 0x{parent_ptr.ToInt64()}"); 362 Eina.Log.Debug($"Parent was 0x{parent_ptr.ToInt64()}");
369 return eo; 363 return eo;
370 } 364 }
371 365