summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_main.c
diff options
context:
space:
mode:
authorMike McCormack <mj.mccormack@samsung.com>2011-07-07 11:37:12 +0000
committerMike McCormack <mikem@ring3k.org>2011-07-07 11:37:12 +0000
commitf7f762154e994d5d8d027020d2734569057f8ee0 (patch)
treec1c362881dd2e37aefb2c57c4698d221e0392c29 /legacy/ecore/src/lib/ecore/ecore_main.c
parent39c049c8d1cf61526c3a5905795f422dfa974e12 (diff)
ecore: Remove unnecessary debugging output
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 61112
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_main.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_main.c b/legacy/ecore/src/lib/ecore/ecore_main.c
index bd8572552c..9196f17c3a 100644
--- a/legacy/ecore/src/lib/ecore/ecore_main.c
+++ b/legacy/ecore/src/lib/ecore/ecore_main.c
@@ -476,8 +476,6 @@ static inline int _ecore_main_fdh_glib_mark_active(void)
476 if (fdh->gfd.revents & (G_IO_IN|G_IO_OUT|G_IO_ERR)) ret++; 476 if (fdh->gfd.revents & (G_IO_IN|G_IO_OUT|G_IO_ERR)) ret++;
477 } 477 }
478 478
479 INF("found %d active fds", ret);
480
481 return ret; 479 return ret;
482} 480}
483 481
@@ -485,10 +483,8 @@ static inline int _ecore_main_fdh_glib_mark_active(void)
485static gboolean 483static gboolean
486_ecore_main_gsource_prepare(GSource *source __UNUSED__, gint *next_time) 484_ecore_main_gsource_prepare(GSource *source __UNUSED__, gint *next_time)
487{ 485{
488 double t = _ecore_timer_next_get();
489 gboolean running; 486 gboolean running;
490 487
491 INF("enter, next timeout in %.1f", t);
492 in_main_loop++; 488 in_main_loop++;
493 489
494 if (!ecore_idling) 490 if (!ecore_idling)
@@ -575,12 +571,9 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
575 uint64_t count = 0; 571 uint64_t count = 0;
576 int r = read(timer_fd, &count, sizeof count); 572 int r = read(timer_fd, &count, sizeof count);
577 if (r == -1 && errno == EAGAIN) 573 if (r == -1 && errno == EAGAIN)
578 INF("timer not ready"); 574 ;
579 else if (r == sizeof count) 575 else if (r == sizeof count)
580 { 576 ret = TRUE;
581 INF("woke %d times", (int)count);
582 ret = TRUE;
583 }
584 else 577 else
585 { 578 {
586 /* unexpected things happened... fail back to old way */ 579 /* unexpected things happened... fail back to old way */
@@ -591,7 +584,7 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
591 } 584 }
592 } 585 }
593 else 586 else
594 ret = TRUE; 587 ret = TRUE;
595 588
596 /* check if fds are ready */ 589 /* check if fds are ready */
597 if (HAVE_EPOLL && epoll_fd >= 0) 590 if (HAVE_EPOLL && epoll_fd >= 0)
@@ -616,9 +609,6 @@ _ecore_main_gsource_check(GSource *source __UNUSED__)
616 609
617 in_main_loop--; 610 in_main_loop--;
618 611
619 if (!(ret || ecore_fds_ready))
620 INF("nothing was ready");
621
622 return ret || ecore_fds_ready; 612 return ret || ecore_fds_ready;
623} 613}
624 614
@@ -698,8 +688,6 @@ static GSourceFuncs ecore_gsource_funcs =
698void 688void
699_ecore_main_loop_init(void) 689_ecore_main_loop_init(void)
700{ 690{
701 INF("enter");
702
703 epoll_fd = epoll_create(1); 691 epoll_fd = epoll_create(1);
704 if (epoll_fd < 0) 692 if (epoll_fd < 0)
705 WRN("Failed to create epoll fd!"); 693 WRN("Failed to create epoll fd!");